1、关闭数据库
mysql -u root -p --execute="SET GLOBAL innodb_fast_shutdown=0"
mkdir /mysql5734
mv mysql... /mysql5734
cd /mysql5734
tar xf mysql....
2、解压下载下来的mysql二级制并赋权
chown -R mysql.mysql /usr/local/mysql5734 -R
ln -s /mysql5734 /usr/local/mysql5734
3、停止服务
/etc/init.d/mysqld stop
4、修改配置文件
vim /etc/my.cnf
basedir = /usr/local/mysql5734
5、生命变量
export PATH=/usr/local/mysql5734/bin:$PATH
6、启动服务,确认启动的进程
/etc/init.d/mysqld start
7、mysqlupdate
mysql_upgrade -u root -p
8、mysql重启
/etc/init.d/mysqld restart