暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

在Oracle云上安装MySQL 5.7

凛冬未至 2017-05-21
418

步骤1:用yum安装wget

# yum install wget

步骤2:用wget下载mysql repository

# wget https://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm

步骤3:安装mysql repository

# rpm -ivh mysql57-community-release-el6-11.noarch.rpm

warning: mysql57-community-release-el6-11.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing...                ########################################### [100%]

1:mysql57-community-relea########################################### [100%]

步骤4:安装mysql5.7

# yum repolist enabled | grep mysql

tors-community MySQL Connectors Community                         36

mysql-tools-community      MySQL Tools Community                              47

mysql57-community          MySQL 5.7 Community Server                        183

# yum install mysql-community-server

步骤5:修改root密码

#service mysqld start

Initializing MySQL database:                               [  OK  ]

Installing validate password plugin:                       [  OK  ]

Starting mysqld:                                           [  OK  ]

#grep 'temporary password' var/log/mysqld.log

2017-05-08T08:18:29.118254Z 1 [Note] A temporary password is generated for root@localhost: t+uQ.8:r:Oyx

 

#mysql -uroot -pt+uQ.8:r:Oyx

mysql>ALTER USER 'root'@'localhost' IDENTIFIED BY 'Welcome1!';

Query OK, 0 rows affected (0.00 sec)

 

#mysql -uroot -pWelcome1!


文章转载自凛冬未至,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论