cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Go to solution
New

Connection failed: Access denied for user

Hi there, I am facing a rather annoying problem.

I cannot access my database using the privileged user that I already created especially for this database, I granted all the privileges so it should work, but it doesn't.

5 REPLIES 5
Super User III
Super User III

Re: Connection failed: Access denied for user

@Alex_J 

 

Is this a PHP script that you are having the issue with - if so what do you have as the host variable?



I am a GoDaddy End User - Just Like You
Check out my site! | I currently manage over 300 WordPress Websites
* Please note that I offer free advice on this forum. If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

Once your issue is resolved,
please be sure to come back and click accept for the solution

Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community

New

Re: Connection failed: Access denied for user

As a host variable I have SELECT, but I think the problem is the hosting, because previously I have used the same code and it was working just fine.

Super User III
Super User III
Solution

Re: Connection failed: Access denied for user

@Alex_J 

 

Having "SELECT" as your host variable sounds odd.... 

 

I'm assuming you are using PHP - you should have something in your script with DB_USER, DB_PASS,DB_NAME and DB_HOST

 

Typically on a cPanel server the host should be localhost.

 

If you tried copying code from another server with a different setup that would need to be changed



I am a GoDaddy End User - Just Like You
Check out my site! | I currently manage over 300 WordPress Websites
* Please note that I offer free advice on this forum. If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

Once your issue is resolved,
please be sure to come back and click accept for the solution

Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community

Re: Connection failed: Access denied for user

Hello, I am also facing this, I check php version is updated and code also but still the issue is there

 

Super User III
Super User III

Re: Connection failed: Access denied for user

@Eshoppingcare 

 

As this thread was already resolved, can you please start a new topic. Please be sure to include your URL and if you can provide a screen capture of your settings that would be helpful as well.



I am a GoDaddy End User - Just Like You
Check out my site! | I currently manage over 300 WordPress Websites
* Please note that I offer free advice on this forum. If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

Once your issue is resolved,
please be sure to come back and click accept for the solution

Get Better Support on the Community Boards!
Etiquette When Asking for Help from the Community