您的位置:首页 > 数据库 > MySQL

Mysql学习之--卸载源码mysql-5.6安装mysql-5.5

2015-03-31 12:08 330 查看
Mysql学习之--卸载源码mysql-5.6安装mysql-5.5系统环境操作系统:RedHat EL6DB Soft:  Mysql 5.5.12    Mysql 在linux下的安装方式有两种版本,一种为Binary(二进制),另外一种为Source(源码包),本文为Source Install方式。
由于,本机已经安装了mysql-5.6的版本,前面的版本采用源码包安装,只需要删除相应的安装文件即可!

1、卸载mysql-5.6

[code=java;toolbar:false">删除/var/lib/mysql下的文件:
[oracle@ogg mysql]$ su -
Password:
[root@ogg ~]# cd /var/lib/mysql/
[root@ogg mysql]# ls
auto.cnf     ib_logfile1           mysql-bin.000001  mysql-bin.000004  mysql-bin.000007  ogg.err             test
ibdata1      master-log-bin.index  mysql-bin.000002  mysql-bin.000005  mysql-bin.000008  ogg.pid
ib_logfile0  mysql                 mysql-bin.000003  mysql-bin.000006  mysql-bin.index   performance_schema
[root@ogg mysql]# rm -rf *

删除/usr/local/mysql下的文件:
[root@ogg mysql]# cd /usr/local/mysql
[root@ogg mysql]# ls
bin      data  include         lib  mysql-5.6.4-m7  README   share      support-files
COPYING  docs  INSTALL-BINARY  man  mysql-test      scripts  sql-bench
[root@ogg mysql]# rm -rf mysql-5.6.4-m7/
[root@ogg mysql]# rm -rf *-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for SHM_HUGETLB
-- Looking for SHM_HUGETLB - found
-- MySQL 5.5.12
…… Installing: /usr/local/mysql/mysql-test/./include/have_binlog_format_row.inc
-- Installing: /usr/local/mysql/mysql-test/./include/assert.inc
-- Installing: /usr/local/mysql/mysql-test/./include/gis_keys.inc
-- Installing: /usr/local/mysql/mysql-test/./include/implicit_commit_helper.inc
-- Installing: /usr/local/mysql/mysql-test/./include/stop_slave_sql.inc
-- Installing: /usr/local/mysql/mysql-test/./include/have_ucs2.inc
-- Installing: /usr/local/mysql/mysql-test/./include/get_binlog_dump_thread_id.inc
-- Installing: /usr/local/mysql/mysql-test/./include/index_merge_ror_cpk.inc
-- Installing: /usr/local/mysql/mysql-test/./include/linux_sys_vars.inc
-- Installing: /usr/local/mysql/mysql-test/./include/ctype_czech.inc
-- Installing: /usr/local/mysql/mysql-test/./include/have_binlog_format_statement.inc
-- Installing: /usr/local/mysql/mysql-test/./include/mix2.inc
……[root@ogg mysql]# 140929 15:39:15 mysqld_safe Logging to '/var/lib/mysql/ogg.err'.
140929 15:39:15 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql日志信息:
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: