前言:
最近因为某多的一个活动,弄了200块钱,就开了台服务器耍耍;
服务器系统:centOS7;
然后我安装完mysql8.0.19后,启动时却报错了。
错误信息:
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
使用命令查看日志信息
cat /var/log/mysqld.log
日志显示为:
2020-05-04T05:15:13.955353Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.19) initializing of server in progress as process 24414
2020-05-04T05:15:14.018517Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2020-05-04T05:15:14.018584Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2020