Fadi946
Power Member
- Mar 25, 2009
- 621
- 79
Hello everyone!
I am trying to put my wordpress (from my localhost) into the hosting! I am going to show you a step by step of what I did, and tell me why it is not connecting to the database!
1) I went to my localhost, logged it (username root, no password), exported my tvshows database.
2) Logged in to goDaddy->went to the WebHosting->SQL->Created a Database with the DB name= FadiX, Username = FadiX, Password = FadiY->Imported my tvshows database.
3) Went to File Manager->Removed all the files that I had inside->Uploaded all of my Wordpress Folder. The folder goes like this TV->Wordpress->All the files here. (See Picture)

4) After uploading all of the files, I went to my wp-config.php->edited it, and this is what it looks like:

(Of course the FadiX and FadiY are not my real username+password+DBname.. just changed it for the example)
Now when I go to my website, I get a Database error:
I have been trying to fix it at least 30 hours now! No kidding! This is so frustrating! I made a step by step and tried to be very clear just so someone can be nice enought to help!!
I would appreciate it SO FREAKING MUCH if someone will find a solution for me!
Thanks so much!
-Fadi
I am trying to put my wordpress (from my localhost) into the hosting! I am going to show you a step by step of what I did, and tell me why it is not connecting to the database!
1) I went to my localhost, logged it (username root, no password), exported my tvshows database.
2) Logged in to goDaddy->went to the WebHosting->SQL->Created a Database with the DB name= FadiX, Username = FadiX, Password = FadiY->Imported my tvshows database.
3) Went to File Manager->Removed all the files that I had inside->Uploaded all of my Wordpress Folder. The folder goes like this TV->Wordpress->All the files here. (See Picture)

4) After uploading all of the files, I went to my wp-config.php->edited it, and this is what it looks like:

(Of course the FadiX and FadiY are not my real username+password+DBname.. just changed it for the example)
Now when I go to my website, I get a Database error:
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.
If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
- 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 have been trying to fix it at least 30 hours now! No kidding! This is so frustrating! I made a step by step and tried to be very clear just so someone can be nice enought to help!!
I would appreciate it SO FREAKING MUCH if someone will find a solution for me!
Thanks so much!
-Fadi