安装过程
参考官方文档: A Quick Guide to Using the MySQL APT Repository
sudo -i
wget https://dev.mysql.com/get/mysql-apt-config_0.8.15-1_all.deb
dpkg -i ./mysql-apt-config_0.8.15-1_all.deb
apt-get update
apt-get upgrade
apt-get install mysql-server
原本一切都很顺利,但是当我想要启动mysql
service mysql start
报错了
# service mysql start
mysql: unrecognized service
# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
相关资料
出问题了,那就查呗,查了百度、必应,google.
贴几个比较好的链接
常规方案: 四种解决mysql安装后无法启动的方法
同为wsl: