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

Unable to connect database

I'm building a new site. In cpanel, I've setup a database, but I'm unable to connect to it from my site or any other test. I've tried deleting the db and recreating with super simple username and password. The db exists and is functional, as I've created a table with data in phpMyAdmin. Nothing seems to work. Am I missing a trick? 

 

I've tried connecting and test the db connection from various means. 

 

  1. Host: [mynewdomain].com
  2. User: the db username I set in cpanel
  3. Password: the db password I set in cpanel 

Is there anywhere on this go daddy site where I can make adjustments or test?

1 ACCEPTED SOLUTION
PL281
Super User II

@hugh_jass 

 

Without see your script (I'm assuming PHP) it's hard to say - typically though the host would be localhost not your domain name.

 

When testing something like this - I usually start just by opening the connection to MySQL and seeing if I get any errors and then go from there

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. Thank You Info 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

View solution in original post

1 REPLY 1
PL281
Super User II

@hugh_jass 

 

Without see your script (I'm assuming PHP) it's hard to say - typically though the host would be localhost not your domain name.

 

When testing something like this - I usually start just by opening the connection to MySQL and seeing if I get any errors and then go from there

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. Thank You Info 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

View solution in original post