在Ubuntu 18.04中手动安装mysql
-
apt-get install libaio1 libmecab2
- 依次执行
sudo dpkg -i mysql-community-client-core_8.0.16-2ubuntu18.04_amd64.deb
sudo dpkg -i mysql-common_8.0.16-2ubuntu18.04_amd64.deb
sudo dpkg -i mysql-community-client_8.0.16-2ubuntu18.04_amd64.deb
sudo dpkg -i libmysqlclient21_8.0.16-2ubuntu18.04_amd64.deb
sudo dpkg -i libmysqlclient-dev_8.0.16-2ubuntu18.04_amd64.deb
sudo dpkg -i libaio1_0.3.110-5_amd64.deb
sudo dpkg -i libmecab2_0.996-5_amd64.deb
sudo dpkg -i mysql-client_8.0.16-2ubuntu18.04_amd64.deb
sudo dpkg -i mysql-community-server-core_8.0.16-2ubuntu18.04_amd64.deb
sudo dpkg -i mysql-community-server_8.0.16-2ubuntu18.04_amd64.deb(若安装失败则执行apt-get -f install)
sudo dpkg -i mysql-server_8.0.16-2ubuntu18.04_amd64.deb
service mysql restart
登陆Mysql
mysql -uroot -p