yum install mysql-server mysql mysql-devel
systemctl start mysql
chkconfig --list |grep mysqld
chkconfig mysqld on
mysqladmin -u root password a123456
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
FLUSH PRIVILEGES;
centos7 mysql被移除
使用
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
# rpm -ivh mysql-community-release-el7-5.noarch.rpm
# yum install mysql-community-server
mysql_config_editor set --login-path=local --host=localhost --user=db_user --password
网友评论