1、ubuntu18.04系统下安装mysql的注意事项
注意:在Ubuntu18.04系统下,采用sudo apt install mysql-server命令的方式默认安装的是MySQL5.7,MySQL5.7版本最高只适配到Ubuntu17.04,不支持Ubuntu18.04。MySQL8.0可适配到Ubuntu18.04,故如果系统使用的Ubuntu18.04,只能安装MySQL8.0,而且加密方式需要选择5.x的加密,因为有兼容性问题,如果你已经执行了上边的命令,安装了MySQL5.7,需要先卸载。
2、ubuntu18.04系统下彻底删除mysql数据库
在Ubuntu18.04系统下彻底删除MySQL的方法:https://blog.csdn.net/digitalkee/article/details/104256420
3、ubuntu18.04系统下安装mysql数据库
详细步骤,如何在Ubuntu 18.04中安装MySQL 8服务器:https://www.ywnz.com/linuxysjk/1645.html
4、ubuntu18.04系统下安装过程中遇到问题
apt-get update
命中:1 http://mirrors.aliyun.com/ubuntu bionic InRelease
命中:2 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease
命中:3 http://dl.google.com/linux/chrome/deb stable InRelease
命中:4 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease
命中:5 http://mirrors.aliyun.com/ubuntu bionic-security InRelease
获取:6 http://repo.mysql.com/apt/ubuntu bionic InRelease [19.4 kB]
命中:7 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
错误:6 http://repo.mysql.com/apt/ubuntu bionic InRelease
下列签名无效: EXPKEYSIG *************** MySQL Release Engineering <mysql-build@oss.oracle.com>
命中:8 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu bionic InRelease
命中:9 http://ppa.launchpad.net/rvm/smplayer/ubuntu bionic InRelease
正在读取软件包列表... 完成
W: GPG 错误:http://repo.mysql.com/apt/ubuntu bionic InRelease: 下列签名无效: EXPKEYSIG ************* MySQL Release Engineering <mysql-build@oss.oracle.com>
E: 仓库 “http://repo.mysql.com/apt/ubuntu bionic InRelease” 没有数字签名。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
数组签名的问题,解决:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ************
5、MySQL数据库的配置和使用
https://blog.csdn.net/hrj199036/article/details/103884787