首页 » Mysql » 正文

Centos安装Mysql

参考:

http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/07/3003278.html

1. 安装
rpm -ivh MySQL-server-5.6.24-1.linux_glibc2.5.x86_64.rpm
rpm -ivh MySQL-client-5.6.24-1.linux_glibc2.5.x86_64.rpm

2. 查看默认root密码
sudo more /root/.mysql_secret

3. root密码登陆
mysql -uroot -p

4. 设置新密码
SET PASSWORD = PASSWORD(‘123456′);

5. 启动
/usr/bin/mysqld_safed

6. 配置
/usr/share/mysql/my-medium.cnf