linux Mysql 安装

一、wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
二、sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
三、yum install -y mysql-server mysql mysql-devel
四、systemctl start mysqld.service
五、systemctl status mysqld.service
六、mysql> SET PASSWORD FOR 'root'@'localhost'=PASSWORD('root123');
七、 create database demo;
八、 show databases;
九、update user set host ='%' where user ='root';
十、 flush privileges;

posted @ 2018-10-16 10:23  衡石李  阅读(105)  评论(0编辑  收藏  举报