Solved

Access denied for user 'root'@'localhost' (using password: NO) - ASP.NET WEBSITE AND MYSQL DATABASE HOSTED IN GODADDY PLESK

Posted on 2016-09-20
5
120 Views
Last Modified: 2016-10-07
Hi,

Please...I need help, regarding to my website built from ASP.Net. It was running fine when I made it, but when I upload it together with my database to my web hosting site GODADDY plesk. I got an error of:

 Access denied for user 'root'@'localhost' (using password: NO)

I checked my server, port,database name, username and password...and I'm sure that it is correct.
I've been searching for the answers but all I've got is answers for website and database that are running through localhost.

But, something caught my attention regarding web.config <connectionStrings>
I really don't have an idea about this, because every time I declare my connection I declared it through module.

I attached the error that I've been experiencing:

I appreciate any help/response.
Thank you.
screenshot.JPG
0
Comment
Question by:Des Ann
  • 3
  • 2
5 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 41808062
It would be unusual for you to be using 'root' to access your MySQL database.  Normally when you set it up, you have to choose a username and password (other than 'root') and you should be using that to connect to your database.
0
 

Author Comment

by:Des Ann
ID: 41808069
I already changed my username and password, but the problem is still the same. :(
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 41808078
If you are getting a message that 'root' is not allowed access, then you are not using your correct username and password to open a connection.
0
 

Author Comment

by:Des Ann
ID: 41808082
Is there a way where I can see the correct username and password for my database? Since it is uploaded to godaddy, I don't have the rights for accessing the config.inc.php
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 41808096
It's not in 'config.inc.php', that is only for phpMyAdmin.  phpMyAdmin uses the privileges that are set up in the MySQL database.  In your Plesk control panel is a place to set up or change your MySQL database username and password.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question