码迷,mamicode.com
首页 > 数据库 > 详细

suse 11 mysql 如何从5.1升级到5.5

时间:2015-05-16 00:12:23      阅读:273      评论:0      收藏:0      [点我收藏+]

标签:mysql   suse11   

1. 查看已安装的安装包

rpm -qa | grep -i mysql

MySQL-server-5.0.67-1.sles11

libqt4-sql-mysql-4.6.2-1.6.11

libmysqlclient15-5.0.67-13.20.1

php5-mysql-5.2.6-50.24.1

MySQL-client-5.0.67-1.sles11

libmysqlclient_r15-5.0.67-13.20.1

2. 删除已有的mysql

rpm -e MySQL-server-5.0.67-1.sles11

rpm -e MySQL-client-5.0.67-1.sles11

3. 移除mysql相关的目录及文件

find / -name mysql
/etc/apparmor.d/abstractions/mysql
/var/lib/mysql
/var/lib/mysql/mysql
/usr/lib64/mysql
/usr/local/quickfix_old/src/sql/mysql
rm -rf /etc/apparmor.d/abstractions/mysql
rm -rf /var/lib/mysql
rm -rf /var/lib/mysql/mysql
rm -rf /usr/lib64/mysql
rm -rf /usr/local/quickfix_old/src/sql/mysql
ls /etc/my*
/bin/ls: /etc/my*: No such file or directory

4. 安装

rpm -ivh MySQL-server-5.5.42-1.sles11.x86_64.rpm
rpm -ivh MySQL-client-5.5.42-1.sles11.x86_64.rpm

5. 如何下载mysql安装包

可以打开网址进行下载:http://mirrors.sohu.com/mysql/MySQL-5.5/

suse 11 mysql 如何从5.1升级到5.5

标签:mysql   suse11   

原文地址:http://blog.csdn.net/lengxue789/article/details/45752519

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!