Error establishing a database connection with XAMPP
-
Hey there,
I’m just getting started with WordPress, and currently using an XAMPP server to try and get a local installation working. The localhost environment is working fine, and I’ve successfully followed the steps here to create a database and user account for WordPress using phpMyAdmin.
However, when nevigating to localhost/wordpress to enter my credentials into the relevant fields and begin the WordPress installation, I get the error:
Error establishing a database connection
I also discovered through a fluke that when I enter no password at all in the password field, I get a different, more specific error that claims my credentials are correct:
Can’t select database
We were able to connect to the database server (which means your username and password is okay) but not able to select the hashim_wordpress database.
Are you sure it exists?
Does the user Hashim have permission to use the hashim_wordpress database? On some systems the name of your database is prefixed with your username, so it would be like username_hashim_wordpress. Could that be the problem?
However, this can’t be the case because that user account definitely has a password set.
My database name is hashim_wordpress, my user account is Hashim, and my password is definitely correct. phpMyAdmin lists my server as 127.0.0.1, but I’ve also tried localhost.
What could I possibly be doing wrong here?
Thank you in advance, I’d really appreciate the help.
- The topic ‘Error establishing a database connection with XAMPP’ is closed to new replies.