'i have an error in establishing a database connection

Hello i have this problem today and i partially solved it using the method described by Fabricio Valencia:

IMPORTANT: do NOT delete ibdata1 file. You could destroy all your databases.

Instead, first try using the MySQL backup folder which is included with XAMPP. So do next steps:

  1. Rename folder mysql/data to mysql/data_old

  2. Make a copy of mysql/backup folder and name it as mysql/data

  3. Copy all your database folders from mysql/data_old into mysql/data (except mysql, performance_schema, and phpmyadmin folders)

  4. Copy mysql/data_old/ibdata1 file into mysql/data folder

  5. Start MySQL from XAMPP control panel And, voilà!


after do that the xampp application work well but when i try to access in localhost/wordpress i read this message in the browser: Error establishing a database connection! please help me i do lot of work and i can't use it! This happen after i install a new plugin! thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source