首页 > 代码库 > 记录一次最新版MySQL-server-5.6.20-1.el6.x86_64.rpm的安装
记录一次最新版MySQL-server-5.6.20-1.el6.x86_64.rpm的安装
本以为很顺利的就能装完了。
mysql的安装包 64位,5.6.20的
http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-server-5.6.20-1.el6.x86_64.rpm
http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-client-5.6.20-1.el6.x86_64.rpm
http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-devel-5.6.20-1.el6.x86_64.rpm
安装rpm -ivh MySQL-server-5.6.20-1.el6.x86_64.rpm
然后就提示
file /usr/mysql/czech/errmsg.sys from install of MySQL-server-5.6.20-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.73-3.el6_5.x86_64
一堆冲突,解决办法如下:
yum -y remove mysql-libs-5.1.73*
装好了之后,准备修改密码
A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !
You will find that password in ‘/root/.mysql_secret‘.
vi /root/.mysql_secret 就可以看到里面的密码了。
登录之后,然后修改密码即可。
mysql -u root -p
SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘123456‘)
以上的命令是将root的密码改为123456
常用命令:
service mysql start 或者 /etc/init.d/mysql start 启动
service mysql stop 或者/etc/init.d/mysql stop 停止
service mysql restart 或者 /etc/init.d/mysql restart 重启
记录一次最新版MySQL-server-5.6.20-1.el6.x86_64.rpm的安装