标签:
2015/08/04
1、使用默认yum安装mysql:
#yum install mysql
#yum install mysql-server
#yum install mysql-devel
2、配置mysql 文件权限:
#chgrp -R mysql /var/lib/mysql
#chmod -R 770 /var/lib/mysql
3、启动mysql:
#service mysqld start
4、登录mysql并修改root密码
#mysql
mysql>SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘123456’);
5、退出重新登录验证密码修改成功
---------------------------------------------------------------------------------------------------------------------------------------------------------------
http://www.yesky.com/187/1754687_3.shtml
标签:
原文地址:http://www.cnblogs.com/xiaoshuxiaoshu/p/4702846.html