Ubuntu18.04安装MySQL数据库

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

  • 3
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值