如何修复Easyphp devserver mysql? mysqlcheck显示许多错误

时间:2018-12-19 18:11:53

标签: phpmyadmin mysql-5.7 easyphp

如何修复mysql安装? 我正在从easyphp devserver 14.1迁移到17的过程中。
1.我已导出和导入数据库,并创建了数据库用户的新实例。
2.我创建了我的虚拟主机
3.当我尝试通过php网站访问数据库时,出现错误“ mysqli :: __ construct():(HY000 / 1524):插件未加载。”
4.在Google上进行的搜索建议我做一个mysql_upgrade,所以我尝试了一下并得到“找不到innodb_table_stats” ...
5.所以我尝试了mysqlcheck并得到了这个:

Microsoft Windows [Version 10.0.17134.471]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd "C:\Program Files (x86)\EasyPHP-Devserver-17\eds-binaries\dbserver\mysql5717x86x181218152537\bin"

C:\Program Files (x86)\EasyPHP-Devserver-17\eds-binaries\dbserver\mysql5717x86x181218152537\bin>mysqlcheck mysql -uroot
mysql.columns_priv                                 OK
mysql.db
warning  : Size of indexfile is: 8054      Should be: 5120
status   : OK
mysql.event                                        OK
mysql.func                                         OK
mysql.general_log                                  OK
mysql.help_category                                OK
mysql.help_keyword                                 OK
mysql.help_relation                                OK
mysql.help_topic                                   OK
mysql.innodb_index_stats
Error    : Table 'mysql.innodb_index_stats' doesn't exist
status   : Operation failed
mysql.innodb_table_stats
Error    : Table 'mysql.innodb_table_stats' doesn't exist
status   : Operation failed
mysql.ndb_binlog_index                             OK
mysql.plugin                                       OK
mysql.proc                                         OK
mysql.procs_priv                                   OK
mysql.proxies_priv
warning  : Table is marked as crashed
warning  : Size of indexfile is: 6550      Should be: 5120
warning  : Size of datafile is: 952       Should be: 693
error    : got error: 0 when reading datafile at record: 1
error    : Corrupt
mysql.servers
warning  : Size of indexfile is: 1283      Should be: 1024
status   : OK
mysql.slave_master_info
Error    : Table 'mysql.slave_master_info' doesn't exist
status   : Operation failed
mysql.slave_relay_log_info
Error    : Table 'mysql.slave_relay_log_info' doesn't exist
status   : Operation failed
mysql.slave_worker_info
Error    : Table 'mysql.slave_worker_info' doesn't exist
status   : Operation failed
mysql.slow_log                                     OK
mysql.tables_priv                                  OK
mysql.time_zone                                    OK
mysql.time_zone_leap_second                        OK
mysql.time_zone_name                               OK
mysql.time_zone_transition                         OK
mysql.time_zone_transition_type                    OK
mysql.user
warning  : Table is marked as crashed
warning  : 1 client is using or hasn't closed the table properly
warning  : Size of indexfile is: 12379      Should be: 2048
warning  : Size of datafile is: 2357       Should be: 548
error    : Wrong bytesec: 100-115-45 at linkstart: 548
error    : Corrupt

C:\ Program Files(x86)\ EasyPHP-Devserver-17 \ eds-binaries \ dbserver \ mysql5717x86x181218152537 \ bin>

1 个答案:

答案 0 :(得分:0)

mysql_upgrade -u root --force似乎有效。现在,我可以通过HeidiSQL连接并查看主要的mysql数据库,并且phpMyAdmin允许我查看状态并访问Variablesl