Windows子系统(Ubuntu WSL)安装Mysql8.0问题解决

出现的问题:

[ERROR] [MY-012585] [InnoDB] Linux Native AIO interface is not supported on this platform. Please check your OS documentation and install appropriate binary of InnoDB.

解决方案:

1、删除mysql 8.x 

sudo apt-get purge mysql-server mysql-client 

sudo apt-get -y autoremove

2、更改Mysql 5.x 为安装首选

sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb 

sudo apt-get update

3、安装Mysql 5.x

sudo apt-get -y install mysql-server

sudo service mysql start(启动看看是否可以运行成功)

4、更改Mysql 8.x为安装首选

sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb 

sudo apt-get update

5、修改脚本文件

sudo vi /etc/init.d/mysql 
(搜索一行“./ usr / share / mysql / mysql-helpers”并将其更改为
“./usr/share/mysql-8.0 / MySQL的帮助程序“)

6、启动Mysql

Service mysql start

 

 

你可能感兴趣的:(Ubuntu,Mysql,Mysql8.0,Ubuntu(WSL))