Check your database details again, and the file name is wp-config.php, not wp_config.php
Yes, it was a spelling mistake, I meant I edited wp-config.php
I’ve checked the database config again and again (DB name, user, password) and I’m quite sure everything is correct.
Check and check again. Use a plain text editor for wp-config. Upload all the WP files and directories again.
I’ve checked the configuration over and over again, and uploaded all the wordpress files again, but there’s no way to get it working.
listen closely, if you get this error message:
“Error establishing a database connection”
then youre not connecting to the db.
end of conversation.
wordpress does NOT lie when it comes to spiiting out db messages.
oh, nice answer, thank you very much! Who said wordpress is lying?? I don’t like anything who comes from people with that attitude. Save your time please.
To everybody else who reads, I’ll contact my hosting administrator to see what’s happening…
your defensiveness isnt necessary — im merely reiterating what was said above about the doublechecking, triplechecking..
what its telling you is accurate, thats all im trying to stress.
if you want to test your settings here is a copy and paste off any of a 1000 websites that explain how to make php talk to mysql:
<?php
$dbhost = 'localhost'; //edit as needed
$dbuser = 'username'; //edit ..
$dbpass = 'password'; //edit ..
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
$dbname = 'dbname'; //edit this too ...
mysql_select_db($dbname);
?>
create a new test.php file and use the values that you have in your wp-config.php for the edits above. upload it to your site and load it in a browser.
Hi have exactly the same problem (even thought I´m a bit scared what whooami´s gonna say lol)but used the same procedure on my other wp sites but this problem is doing my head in. Yes I have tried test.php but nada zip.
wrightboy,
then youre not using the right settings.
I am sorry but obviously this is all straight forward to you but me it certainly is not so could you what the right settings are or where I should be looking at least. Dont worry I will listen closely…
i dont know what your right settings are. no-one here can tell you that. perhaps if you want to tell us who your host is, you can be pointed in the right direction… no telling.
have you read and followed these instuctions:
http://codex.ww.wp.xz.cn/Installing_WordPress#Step_2:_Create_the_Database_and_a_User
and why try to bait me with the last remark? your first mention of me wasnt enough? I didnt bite? youre bored and looking to troll the forums? what?
Hey whooami no offence meant just a little light hearted humour I know the good work you put in to this forum and I certainly would not want to offend you or any of the other contributors. Anyway solved my problem and when you say check and check again that is what people should do. My problem: ‘ user_name’ should of been ‘user_name’ one stupid little space,problem is sometimes you just have to walk away and come back to it later it seems to have worked.
Thx
I have uploaded all of the appropriate files, and even left wp_config.php intact. Yet when I log into my admin panel, the old WordPress is still there. It is recognized that I need to update, but my version is 2.3, so I’m just redirected to the page to download the thing. Any suggestions are appreciated.
And when I load wp_upgrade.php I am told that no upgrade is required
oops seems I spoke to soon think this needs an expert to tell me what I have done wrong. mens health