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服务开机启动)
网友评论