Как восстановить Easyphp Devserver MySQL?mysqlcheck показывает много ошибок - PullRequest
0 голосов
/ 19 декабря 2018

Как восстановить установку MySQL?Я нахожусь в процессе миграции с easyphp devserver 14.1 на 17.
1. Я экспортировал и импортировал свои базы данных и создал новые экземпляры пользователей моей базы данных.
2. Я создал свои vhosts
3.Когда я пытаюсь получить доступ к базе данных через мой php-сайт, я получаю сообщение об ошибке «mysqli :: __ construct (): (HY000 / 1524): плагин не загружен».
4. Поиск в Google показал, что я выполняю mysql_upgrade, поэтомуЯ попробовал это и получил «innodb_table_stats not found» ...
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 \ред-двоичные файлы \ DbServer \ mysql5717x86x181218152537 \ Bin>

1 Ответ

0 голосов
/ 20 декабря 2018

mysql_upgrade -u root --force, похоже, сработало.Теперь я могу подключиться и просмотреть основную базу данных mysql через HeidiSQL, а phpMyAdmin позволяет мне просматривать Status и получать доступ к Variablesl

...