Ubuntu   发布时间:2022-05-10  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Ubuntu-18 安装mysql-8大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
dpkg --list|grep MysqL

wget -c https://dev.Mysql.com/get/MysqL-apt-config_0.8.10-1_all.deb

dpkg -i MysqL-apt-config_0.8.10-1_all.deb

选择OK

apt update

Ubuntu-18 安装mysql-8

报错:

Err:7 http://repo.Mysql.com/apt/ubuntu bionic InRelease        
  The following signatures were invalid: EXPKEYSIG 8C718D3B5072E1F5 MysqL Release ENGIneering <MysqL-build@oss.Oracle.com>
Reading package lists... Done
W: GPG error: http://repo.Mysql.com/apt/ubuntu bionic InRelease: The following signatures were invalid: EXPKEYSIG 8C718D3B5072E1F5 MysqL Release ENGIneering <MysqL-build@oss.Oracle.com>
E: The repository 'http://repo.Mysql.com/apt/ubuntu bionic InRelease' is not signed.
N: updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

解决:

apt-key list

Ubuntu-18 安装mysql-8

 apt-key del rsa4096

重新添加签名:

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8C718D3B5072E1F5

重新更新:

apt update

Ubuntu-18 安装mysql-8

安装MysqL8:

apt install MysqL-server

Ubuntu-18 安装mysql-8

Ubuntu-18 安装mysql-8

输入之后会出现选择加密方式的提示界面,我在网上的教程中看到默认的MysqL8.0的加密方式与ubuntu18.04 不兼容,所以选择5.x的加密方式;建议选择下边的那个。

Ubuntu-18 安装mysql-8


安装完,试试:

Ubuntu-18 安装mysql-8

大佬总结

以上是大佬教程为你收集整理的Ubuntu-18 安装mysql-8全部内容,希望文章能够帮你解决Ubuntu-18 安装mysql-8所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: