在Ubuntu 18.04中手动安装mysql

  • Post author:
  • Post category:mysql




在Ubuntu 18.04中手动安装mysql


  1. apt-get install libaio1 libmecab2
  2. 依次执行

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



版权声明:本文为qq_43907505原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。