ubuntu 18.04 安装mysql 8.0

时间:2021-11-26 15:59:32

1.下载配置(不然直接装的是mysql5.7): wget https://repo.mysql.com//mysql-apt-config_0.8.10-1_all.deb

2.更新配置: sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb

 弹出 tab 选项 选  mysql 8.0  -> ok

3.更新安装文件:sudo apt-get update

4.安装mysql: sudo apt-get install mysql-server

  设置密码-> 确认密码-> 选择加密方式为:5.x 

具体查阅:https://blog.csdn.net/HQZ820844012/article/details/80490577

       https://blog.csdn.net/qbmzc/article/details/80176601

5.安装完成

遇到远程登入不了 查阅 https://www.cnblogs.com/q149072205/p/7411097.html