centos mysql安装,密码修改,开机启动
2017-12-03 本文已影响0人
吕志豪

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