Is this a site you installed locally (on your computer) or on a web server?
If it’s local, have you tried http://localhost/wp-admin ?
Local, I’ll try that right now.
Tried that. Didn’t work. Received a 404 error. Also the following error message.
Warning: mysqli_real_connect(): (HY000/1045): Access denied for user ‘Jaxom’@’localhost’ (using password: YES) in C:\xampp\apps\wordpress\htdocs\wp-includes\wp-db.php on line 1386
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\xampp\apps\wordpress\htdocs\wp-includes\wp-db.php on line 1416
Warning: mysql_connect(): Access denied for user ‘Jaxom’@’localhost’ (using password: YES) in C:\xampp\apps\wordpress\htdocs\wp-includes\wp-db.php on line 1416
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:3306. 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?
You need to check the values you entered in wp-config.php (database name, user, password) and make 100% sure they are valid with how you set up the database.
Obviously I entered something wrong. What file contains the data I originally typed that I should have changed wp-admin to? Software has to be comparing against something.
define(‘DB_NAME’, ‘root_wordpress-trunk’); As per Getting started guide.
/** MySQL database username */
define(‘DB_USER’, ‘Myusername’); Repeatedly checked from notes during install/setup.
/** MySQL database password */
define(‘DB_PASSWORD’, ‘mypassword’); Also repeatedly checked against notes made during install/setup.
/** MySQL hostname */
define(‘DB_HOST’, ‘localhost:3306’);
I just don’t get it! I’ve gone over this so many times. When I start up Xampp Control panel, I’ve got green across the board, so I know every thing is working fine. Just can’t pull up http://localhost/wp-admin. Either I need a way to reset everything back to default or a hint to where what I actually entered is stored other then wp-config.
Mark Senff,
My email has been acting weird last few days. Just received the email for your post above. As you can see, I’ve gone over these settings a dozen times or more. Ready to pull my hair out! Having said that I’m not the type to sit around waiting for others to do my work for me. Was doing my own investigating for the infamous “Error establishing a database connection” issue.
I cam across a script I could possibly run. I just don’t know how. It’s been 15 years since I took my Linux certification course, where most of the script writing was in bash, with some php. I look at the gui that came with Xampp for php and I’m totally lost!
Another suggestion was to switch ‘localhost:3306’ to 127.0.0.1. This did not work. I also read that using an underscore when naming the database name may cause an issue. Didn’t have a chance to investigate this any further. I only did that because that’s how it says to do it in the Getting Started guide.
I’m all ears if anyone has any other suggestions. In the mean time I’ll continue reading and trying different things. See what works. Soooo frustrating, I just wanna get into building my website! UGH!
Hi, jayv2251
Did you manage to solve your problem?
Having exactly the same issue as you.
Lost my hair from running in loops…
@jayv2251 Did you manage to solve your problem?
I have the seme error when I try to install wordpress 4.2.2 in my localhost.