1:查看操作系统信息
##uname -a
:
准备软件包:
MySQL-server-5.6.19-1.rhel5.x86_64.rpm
MySQL-devel-5.6.19-1.rhel5.x86_64.rpm
MySQL-client-5.6.19-1.rhel5.x86_64.rpm
下载地址:http://dev.mysql.com/downloads/mysql/
MySQL-server-5.6.19-1.rhel5.x86_64.rpm
http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-server-5.6.19-1.rhel5.x86_64.rpm
MySQL-devel-5.6.19-1.rhel5.x86_64.rpm
http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-devel-5.6.19-1.rhel5.x86_64.rpm
MySQL-client-5.6.19-1.rhel5.x86_64.rpm
http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-client-5.6.19-1.rhel5.x86_64.rpm
2:安装服务端:
#rpm -ivh MySQL-server-5.6.19-1.rhel5.x86_64.rpm
错误原因:包冲突了
#yum -y remove mysql-libs-5.1*
重新安装即可:
# rpm -ivh MySQL-server-5.6.19-1.rhel5.x86_64.rpm
3:安装客户端
3:尝试启动服务
# /etc/init.d/mysql start
4:停止服务
# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root'; mysql> FLUSH PRIVILEGES;
mysql> quit 重新执行: Mysql>SET PASSWORD = PASSWORD('123456');