xampp mysql Failed to initialize multi master structures(xampp mysql无法初始化多主结构)
问题描述
我在 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无法初始化多主结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:xampp mysql无法初始化多主结构
基础教程推荐
- CHECKSUM 和 CHECKSUM_AGG:算法是什么? 2021-01-01
- 从字符串 TSQL 中获取数字 2021-01-01
- ORA-01830:日期格式图片在转换整个输入字符串之前结束/选择日期查询的总和 2021-01-01
- 使用 VBS 和注册表来确定安装了哪个版本和 32 位 2021-01-01
- 带更新的 sqlite CTE 2022-01-01
- 如何在 CakePHP 3 中实现 INSERT ON DUPLICATE KEY UPDATE aka upsert? 2021-01-01
- MySQL 5.7参照时间戳生成日期列 2022-01-01
- MySQL根据从其他列分组的值,对两列之间的值进行求和 2022-01-01
- while 在触发器内循环以遍历 sql 中表的所有列 2022-01-01
- 带有WHERE子句的LAG()函数 2022-01-01
