xampp mysql无法初始化多主结构

xampp mysql Failed to initialize multi master structures(xampp mysql无法初始化多主结构)
本文介绍了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无法初始化多主结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

LazyInitializationException trying to get lazy initialized instance(LazyInitializationException 试图获取惰性初始化实例)
rake aborted! uninitialized constant Mysql2(耙中止!未初始化的常量 Mysql2)
Initialize MariaDB 10.4.12 on CentOS 7.7(在 CentOS 7.7 上初始化 MariaDB 10.4.12)
How can I initialize a MySQL database with schema in a Docker container?(如何在 Docker 容器中使用架构初始化 MySQL 数据库?)
Initializing a MySQL database deployed in an AWS EKS(初始化部署在 AWS EKS 中的 MySQL 数据库)
How to resolve ORA-011033: ORACLE initialization or shutdown in progress(如何解决 ORA-011033:正在进行 ORACLE 初始化或关闭)