WSL启动MySQL

在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即可

你可能感兴趣的:(WSL启动MySQL)