Hi, I've been working on a blog for myself locally using Wordpress on XAMPP, and decided to put it online to test my domain. This was the first time that I actually did a transfer, and I used Cyberduck to do so.
Now, when trying to go to my main site directory, i get the Error Establishing a Database Connection in all bold. But when I try to log into wp-admin, I get the same error, but with more information:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
I've surfed the web and troubleshooted this problem for about 4 hours now and can't seem to get it to work no matter what I do. A few things that I did was:
Try to change the DB configurations in the wp-config file, to match my MySQL database configurations. I am using xhosting (free), and I've seen people say use localhost and I've seen people say use mysql.xhosting, but neither has worked for me so far, unless I missed the right combination while messing with the file (doubt it).
Can this problem be due to something in wordpress itself, or something that I am just missing with wp-config? Like I said, I've never done this before, so I could have missed something simple.
All help will be greatly appreciated! Thanks guys.
P.S. my website url is : iambey.com
EDIT: I forgot to mention, the website still works locally using XAMPP, so the problem definitely happened somewhere while transferring it to the live server.
Now, when trying to go to my main site directory, i get the Error Establishing a Database Connection in all bold. But when I try to log into wp-admin, I get the same error, but with more information:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
- Are you sure you have the correct username and password?
- Are you sure that you have typed the correct hostname?
- Are you sure that the database server is running?
I've surfed the web and troubleshooted this problem for about 4 hours now and can't seem to get it to work no matter what I do. A few things that I did was:
Try to change the DB configurations in the wp-config file, to match my MySQL database configurations. I am using xhosting (free), and I've seen people say use localhost and I've seen people say use mysql.xhosting, but neither has worked for me so far, unless I missed the right combination while messing with the file (doubt it).
Can this problem be due to something in wordpress itself, or something that I am just missing with wp-config? Like I said, I've never done this before, so I could have missed something simple.
All help will be greatly appreciated! Thanks guys.
P.S. my website url is : iambey.com
EDIT: I forgot to mention, the website still works locally using XAMPP, so the problem definitely happened somewhere while transferring it to the live server.