![]() ![]() It keeps failing at page 2 (as indicated above).Ģ) Open your phpMyAdmin –> Users on that database and verify that the user has the right access.Ī: My root user has all privileges granted.ģ) Open a command prompt and connect to that db using mysql :Ī: Root can successfully connect to the database via the MySql console (though it is empty and has not structure yet) just fine. Thanks I will give those tips a try and report back….ġ) Open your config file, to verify the user.Ī: In case it wasn’t clear in from the description, I don’t actually have a wp-config.php file yet because WordPress failed to complete the install. Reason: moved to Localhost Installs since this is a localhost install This topic was modified 3 years, 2 months ago by James Huff. I won’t be offended by detail - the more detail the better! What is causing this and how do I fix it? I’ve done my best to provide all the details you might need. That wouldn’t make sense since I suppose I am my own ISP since I’m on localhost. Result – Error – Error establishing a database connection (again). Result: Error – Unable to connect to database.Ĭ) Delete wp-config file and tried 5-minute install again with a newly created user (not root), after assigning all privleges to the user. Result: Error – Able to connect to database server just fine, but unable to SELECT database.ī) Tried 5-minute install again after manually creating wp-config file, but duplicating wp-config-sample.php and changing the database connection details. Here is the order things went:Ī) Tried 5-minute install as root, but failed at page 2 after entering the database connect details. It doesn’t make sense that WampServer would get corrupted so early (directly after ‘birth’) in its lifecycle.Ģ) Did you try manually creating a wp-config file?Īctually, yes I did. I JUST installed it on a fresh Virtual machine on a brand new laptop that had nothing but Windows 10 on it. Here are some question I can anticipate that I’m addressing up-front:ġ) Did you try reinstalling the WampServer? Installing on Windows 7 guest host in VirtualBox in WAMPServer 3.2. “Error establishing a database connection” It seemed successful, but when I tried the install again using the new user, I got the So, I tried creating a new user and assigning that user to the database in phpMyAdmin. I was connecting as root when I got that error. “We were able to connect to the database server (which means your username and password is okay) but not able to select the database.” I created a database and started the installer by navigating to ‘localhost’. ![]() ![]() I’m setting up a brand new local WordPress site on my laptop as a local development server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |