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日志信息:
由于,本机已经安装了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日志信息:
相关文章推荐
- Mysql学习之--卸载源码mysql-5.6安装mysql-5.5
- 【MySQL】Linux下MySQL 5.5、5.6和5.7的RPM、二进制和源码安装
- 分布式架构学习之:MySQL源码编译安装(CentOS-6.7+MySQL-5.6)
- 【MySQL学习笔记】CentOS 6.6上源码编译方式安装MySQL 5.6
- Mysql 源码编译安装 ( 5.5 、5.6 共存 )
- 分布式架构学习之:MySQL源码编译安装(CentOS-6.7+MySQL-5.6)
- Linux下MySQL 5.5、5.6和5.7的RPM、二进制和源码安装(上)
- 分布式架构学习之:033--MySQL源码编译安装(CentOS-6.7+MySQL-5.6)
- mysql源码学习笔记:插件的安装和卸载
- CentOS 5.5源码安装apache+mysql+php
- [MySQL] Linux下MySQL-5.6源码安装
- CentOS 6.3下MySQL 5.6源码安装
- RedHat中源码方式安装MySQL Server(5.5)
- mysql5.5源码安装相关选项说明
- ubuntu 源码MySQL 5.6安装后链接不上mysql.sock的问题
- CentOS 6.3下MySQL 5.6源码安装
- Centos 5.5 64位 安装nginx1.4+php5.5+mysql+5.6笔记
- (原)CentOS Linux卸载、安装mysql5.6
- Mysql 5.6 源码安装及报错处理
- Linux下源码编译MySQL 5.5 与安装过程全记录