Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xammp MySQL Error

I am getting this error in my phpmyadmin after recently installing new local xammp server.. Can anybody help on this one?

Warning in .\libraries\dbi\DBIMysqli.class.php#261
 mysqli_query(): (HY000/1030): Got error 9 "Bad file descriptor" from storage engine MyISAM

Backtrace

.\libraries\dbi\DBIMysqli.class.php#261: mysqli_query(
object,
string 'SELECT * FROM `mysql`.`db` LIMIT 1',
integer 0,
)
.\libraries\DatabaseInterface.class.php#246: PMA_DBI_Mysqli->realQuery(
string 'SELECT * FROM `mysql`.`db` LIMIT 1',
object,
integer 0,
)
.\libraries\check_user_privileges.lib.php#46: PMA_DatabaseInterface->tryQuery(string 'SELECT * FROM `mysql`.`db` LIMIT 1')
.\libraries\check_user_privileges.lib.php#395: PMA_checkRequiredPrivilgesForAdjust()
.\libraries\List_Database.class.php#17: require_once(.\libraries\check_user_privileges.lib.php)
.\libraries\PMA.php#17: require_once(.\libraries\List_Database.class.php)
.\libraries\common.inc.php#1089: include_once(.\libraries\PMA.php)
.\tbl_structure.php#14: require_once(.\libraries\common.inc.php)
like image 950
Dev.W Avatar asked Oct 19 '15 21:10

Dev.W


People also ask

Why MySQL is shutting down automatically in XAMPP?

Cause of “Error: MySQL Shutdown Unexpectedly” in XAMPP Apart from corrupted files, improper database shut down, missing files and port changes can also cause this error. When you run MySQL in a webserver, the corrupted files in the mysql/data folder cause MySQL to shut down.

Why is MySQL shutdown unexpectedly?

In some cases, the problem appears after users reinstall XAMPP on their computer. The reason this happens is when the MySQL files are corrupted or damaged in which case you will have to use the backup folder that can be found in the mysql directory.


1 Answers

You can run this executable file: mysql_upgrade.exe which is located inside this folder: XAMPP/mysql/bin.. I tried this and it worked.

like image 76
ynz Avatar answered Nov 03 '22 03:11

ynz