还有xampp\mysql\data 目录下的my.ini datadir需要看下,可能路径错误,使用下面的命令启动和检查后恢复。
This one helped for me:
Open shell from from control panel and start mysql with this command:
mysqld –-console –-skip-grant-tables –-skip-external-locking
Open another shell from control panel and repair database with this command:
mysqlcheck -r --databases mysql --use-frm
Stop mysql, close shells and restart mysql normally.