centos/linux 6.5下安装mysql
2019-07-14 本文已影响0人
大白乐了
1.yum install mysql-server
2.service mysqd start
3.mysql
4.use mysql
5.select host,user,password from user
6.grant all privileges on . to 'root'@'%' identified by 'thinker' with grant option;
7.flush privileges (或者 service mysqld restart)
- chkconfig mysqld on (设置mysqld服务开机启动)