码迷,mamicode.com
首页 > 数据库 > 详细

安装MYSQL 8.0

时间:2020-03-22 20:05:19      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:service   lin   ken   ase   安装   oracle   include   alter   oracl   

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

标签:service   lin   ken   ase   安装   oracle   include   alter   oracl   

原文地址:https://www.cnblogs.com/kaisim/p/12547611.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!