时间:2021-07-01 10:21:17 帮助过:2人阅读
#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
在Linux下安装和使用MySQL
标签: