问题描述
我在 Windows 上安装了 xampp,它工作正常.
I installed xampp on windows and it worked.
今天当我尝试启动 mysql 服务时,它返回此错误,我无法运行 mysql
Today when i try to start mysql service it returns this error and i can't run mysql
2020-01-05 17:10:07 17 [Note] Master '2020-01-04 19:28:32 23 [Warning] Checking table: '.htmarketusers'
': Slave SQL thread initialized, starting replication in log 'FIRST' at position 0, relay log '.mysql-relay-bin-2020002d04003a28002023005bwarning0020checking003a00200027005chtmarket0027@000d.000012' position: 4
2020-01-05 17:10:07 16 [ERROR] Master '2020-01-04 19:28:32 23 [Warning] Checking table: '.htmarketusers'
': Slave I/O: Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated. Internal MariaDB error code: 1593
2020-01-05 17:10:07 0 [Warning] Reading of some Master_info entries failed
2020-01-05 17:10:07 16 [Note] Master '2020-01-04 19:28:32 23 [Warning] Checking table: '.htmarketusers'
': Slave I/O thread killed while connecting to master
2020-01-05 17:10:07 0 [ERROR] Failed to initialize multi master structures
2020-01-05 17:10:07 16 [Note] Master '2020-01-04 19:28:32 23 [Warning] Checking table: '.htmarketusers'
': Slave I/O thread exiting, read up to log 'FIRST', position 4
2020-01-05 17:10:07 0 [ERROR] Aborting
mysql 出了什么问题?
what's wrong with mysql?
推荐答案
如果有帮助,我有同样的问题,我可以通过删除数据目录中所有 mysql 生成的文件来解决它:
If it helps, I had the same issue and I could fix it by deleting all the files mysql misteriously generated in data directory:
只需删除所有主文件并保留您的数据文件夹,如下图所示:
Just delete all the master files and leave your data folder like this picture:
希望这会有所帮助.干杯!
Hope this helps. Cheers!
编辑 - 删除所有这些文件后,每次我尝试再次启动 Mysql 时,我都需要删除 aria_log.00000001(每次启动 Mysql 时这个数字都会增加).如果再次发生同样的情况,请记住这一点.
EDIT - After deleting all those files, each time I try to start Mysql again, I need to delete aria_log.00000001 (this number increments each time I start Mysql). Keep that in mind if it's happening the same again.
这篇关于xampp mysql无法初始化多主结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!