昨天我在做我的项目,一切都很顺利,所以我就去睡觉了。当我醒来做完自己的事情,试图运行Apache和MySQL(通过xampp),Apache确实启动了,但是MySQL显示出这样的错误:
Error: MySQL shutdown unexpectedly.
[mysql] This may be due to a blocked port, missing dependencies,
[mysql] improper privileges, a crash, or a shutdown by another method.
[mysql] Press the Logs button to view error logs and check
[mysql] the Windows Event Viewer for more clues
[mysql] If you need more help, copy and post this
[mysql] entire log window on the forums
自昨天以来,我什么都没做,所以我不知道出了什么问题。此外,我已经检查了Windows事件查看器,并得出了以下结果:
Warning
Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--log-basename=#' or '--relay-log=mysql-relay-bin' to avoid this problem.
Error (this one repeats itself couple of times)
Slave I/O: Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated. Internal MariaDB error code: 1593
Error
Failed to create a new master info file (file 'D:\Programs\xampp\mysql\data\master-2019@002d12@002d27@002020@003a50@003a29@00209@0020@005berror@005d@0020mysqld@002eexe@003a@0020table@0020@0027@002e@005clsslspd@005cwqhndjvxchcv_users@0027@0020is@0020marked@0020as@0020crashed@0020and@0020should@0020be@0020repaired@000d.info', errno 2)
Error
Initialized Master_info from 'master-2019@002d12@002d27@002020@003a50@003a29@00209@0020@005berror@005d@0020mysqld@002eexe@003a@0020table@0020@0027@002e@005clsslspd@005cwqhndjvxchcv_users@0027@0020is@0020marked@0020as@0020crashed@0020and@0020should@0020be@0020repaired@000d.info' failed
Error
Slave I/O: Fatal error: Invalid (empty) username when attempting to connect to the master server. Connection attempt terminated. Internal MariaDB error code: 1593
Error
Failed to create a new master info file (file 'D:\Programs\xampp\mysql\data\master-2019@002d12@002d27@002022@003a53@003a23@0020125@0020@005bwarning@005d@0020aborted@0020connection@0020125@0020to@0020db@003a@0020@0027lsslspd@0027@0020user@003a@0020@0027root@0027@0020host@003a@0020@0027localhost@0027@0020@0028got@0020an@0020error@0020reading@0020communication@0020packets@0029@000d.info', errno 2)
最后两个错误交替出现了4次(但值略有不同)。
你们能帮我解决这个问题吗?我不想丢失所有数据。已尝试重新安装和复制mysql->data内容,但都没有起作用。