在Win10的WSL(Windows Subsystem for Linux)里,使用sudo apt-get install mysql-server
安装MySQL之后,MySQL服务总是无法启动。
执行sudo service mysql start
,出现下面的错误
sudo service mysql start
/lib/lsb/init-functions.d/50-ubuntu-logging: line 5: 41 Aborted (core dumped) plymouth --ping > /dev/null 2>&1
* Starting MySQL database server mysqld
/lib/lsb/init-functions.d/50-ubuntu-logging: line 5: 519 Aborted (core dumped) plymouth --ping > /dev/null 2>&1
[ OK ]
* Checking for tables which need an upgrade, are corrupt or were not closed cleanly.
解决办法
换成sudo service mysql start > /dev/null
即可