您的位置:首页 > 运维架构 > Linux

CentOS6.9用rpm安装MySQL5.7

2017-08-22 09:29 471 查看

CentOS6.9用rpm安装MySQL5.7

不多说,直接上代码(命令行)。

MySQL的版本自己在repo.mysql.com找。

http://repo.mysql.com/mysql57-community-release-el6-11.noarch.rpm

whereis mysql

yum remove mysql-libs

y

yum clean dbcache

wget http://repo.mysql.com/mysql57-community-release-el7-11.noarch.rpm 
rpm -ivh mysql57-community-release-el7-11.noarch.rpm

yum install mysql-community-server

y

y

service mysqld start

mysql -uroot

update user set password=PASSWORD("123456") where user='root';

flush privileges;

quit

mysql -uroot

mysql -uroot -p123456
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  centos mysql rpm