Centos7.5 安装Mysql5.7

#yum -y install wget

#wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
# yum -y install mysql57-community-release-el7-10.noarch.rpm
# yum -y install mysql-community-server

#systemctl start mysqld.service
#systemctl status mysqld.service
#grep "password" /var/log/mysqld.log
#mysql -uroot -p
>ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';
#yum -y remove mysql57-community-release-el7-10.noarch
>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;
>FLUSH PRIVILEGES;

posted on 2019-08-13 12:16  范兵  阅读(340)  评论(0编辑  收藏  举报

导航