Error establishing a database connection

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Error establishing a database connection

Postby thorney » 04. October 2012 16:37


i was trying to put my wordpress local host site onto the net. in order for this to work i had to ensure passwords etc on wp-config.php matched those for the live host database. anyway password requirements on live host prevented me from doing this. thus i changed passowrd in the wp-config.php but this did not work so i tried changing password in privileges in phpmyadmin aswell. Since then however ive have been unable to reload wordpress on localhost due to Error establishing a database connection. Can anybody help, its driving me nuts
Posts: 1
Joined: 04. October 2012 16:27
XAMPP Version: 5.6.14
Operating System: windows

Re: Error establishing a database connection

Postby JonB » 09. October 2012 14:46

you have to re-create the WP 'database user' locally.

The best way to move WP is to do a complete new installation - then restore the 'wp' database and its tables.

You sorta didn't bother to mention what version of WP this is. It is wisest to install the exact same version locally.

Good Luck

User avatar
AF Moderator
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-3
Operating System: Windows XP/7 - Fedora 15 1.7.7

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 56 guests