If it worked the first time and you did everything exactly the same way this time, then it should work again. If you are getting the database connection error, then you need to double check the database name, database user, and user password in the config.php file. Also, on most hosts the db connection ‘localhost’ will work fine, but on a few, you have to enter some special connection info there…like an ip address.
Give the following video a watch and pay particular attention to the database creation information…maybe it will help you see what you are doing wrong.
http://educhalk.org/blog/?p=1
Hi Figaro
I am not installing wp2.7 from the Cpanel. I am using Filezilla and Dreamweaver to upload wp 2.7 to the host server, like i siad i had it working first time place, I even had a copy of the wp-config.php that i used when i had wp2.7 working fine, i double checked the server wp-config.php with the one i used earlier there is no any diffrence. the error is still
Error establishing a database connection.
can the error not be related to the wp-config.php? may be something eals.
Cpanel wasn’t the point…the point was for you to see if you have all your DB information correct and entered correctly in config.php. If you are getting that error, then your blog just can’t find the database for some reason. If you are certain all your DB information is entered correctly in config.php, then maybe you should open a new wp-config-sample.php file and enter the db information, rename it to wp-config.php and replace the one in your install with the new one.
If I were a betting man, I would bet there is something wrong with either the db name, db user, or db password in the config file…it’s not matching your actual db…or possibly, you need to change the db connect ‘localhost’ to something else (that you would need to get from your host)…not likely if localhost worked previously.
Hi Figaro
YuP you was right it was the password was the problem. some how it was changed by my host or something, i had to calle them to reset it. ones again thank you for the support. Long Live WP 😉
You’re welcome…glad you got it working.