安装MYSQL 8.0
Posted kaisim
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装MYSQL 8.0相关的知识,希望对你有一定的参考价值。
https://dev.mysql.com/doc/mysql-installation-excerpt/5.7/en/linux-installation-yum-repo.html
配置repolist
yum localinstall https://dev.mysql.com/get/mysql80-community-release-el8-1.noarch.rpm
Disabling the Default MySQL Module
(EL8 systems only) EL8-based systems such as RHEL8 and Oracle Linux 8 include a MySQL module that is enabled by default. Unless this module is disabled, it masks packages provided by MySQL repositories. To disable the included module and make the MySQL repository packages visible, use the following command (for dnf-enabled systems, replace yum in the command with dnf):
sudo yum module disable mysql
Installing MySQL
sudo yum install mysql-community-server
Starting the MySQL Server
service mysqld start
修改密码
grep ‘temporary password‘ /var/log/mysqld.log
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘MyNewPass4@‘;
以上是关于安装MYSQL 8.0的主要内容,如果未能解决你的问题,请参考以下文章
mysql的5.7和8.0版本安装以及navicat15的安装