Mysql-5.6.30卸载

一、删除相关文件

rm  -rf  /var/lib/mysql/mysql   (删除数据文件)

rm  -f  /root/.mysql_secure    (删除缺省root密码文件,以便rpm包安装时重新生成

二、卸载MySQL-server-5.6.30-1.el6.x86_64包

rpm -e MySQL-server-5.6.30-1.el6.x86_64

三、重新安装MySQL-server-5.6.30-1.el6.x86_64包

rpm -ivh MySQL-server-5.6.30-1.el6.x86_64.rpm

warning: MySQL-server-5.6.30-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing...                ########################################### [100%]

1:MySQL-server           ########################################### [100%]

2016-09-04 11:53:12 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2016-09-04 11:53:12 0 [Note] /usr/sbin/mysqld (mysqld 5.6.30) starting as process 30354 ...

2016-09-04 11:53:12 30354 [Note] InnoDB: Using atomics to ref count buffer pool pages

2016-09-04 11:53:12 30354 [Note] InnoDB: The InnoDB memory heap is disabled

2016-09-04 11:53:12 30354 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2016-09-04 11:53:12 30354 [Note] InnoDB: Memory barrier is not used

2016-09-04 11:53:12 30354 [Note] InnoDB: Compressed tables use zlib 1.2.3

2016-09-04 11:53:12 30354 [Note] InnoDB: Using Linux native AIO

2016-09-04 11:53:12 30354 [Note] InnoDB: Using CPU crc32 instructions

2016-09-04 11:53:12 30354 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2016-09-04 11:53:12 30354 [Note] InnoDB: Completed initialization of buffer pool

2016-09-04 11:53:12 30354 [Note] InnoDB: Highest supported file format is Barracuda.

2016-09-04 11:53:12 30354 [Note] InnoDB: Log scan progressed past the checkpoint lsn 18718277304

2016-09-04 11:53:12 30354 [Note] InnoDB: Database was not shutdown normally!

2016-09-04 11:53:12 30354 [Note] InnoDB: Starting crash recovery.

2016-09-04 11:53:12 30354 [Note] InnoDB: Reading tablespace information from the .ibd files...

2016-09-04 11:53:12 30354 [Note] InnoDB: Restoring possible half-written data pages

2016-09-04 11:53:12 30354 [Note] InnoDB: from the doublewrite buffer...

InnoDB: Doing recovery: scanned up to log sequence number 18718279764

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Table monitor/m_admins in the InnoDB data dictionary has tablespace id 6, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.

InnoDB: Please refer to

InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

InnoDB: for how to resolve the issue.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Table monitor/m_channel_count in the InnoDB data dictionary has tablespace id 15, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.

InnoDB: Please refer to

InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

InnoDB: for how to resolve the issue.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Table monitor/m_channel_info in the InnoDB data dictionary has tablespace id 14, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.

InnoDB: Please refer to

InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

InnoDB: for how to resolve the issue.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Table monitor/m_invoke_config in the InnoDB data dictionary has tablespace id 11, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.

InnoDB: Please refer to

InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

InnoDB: for how to resolve the issue.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Table monitor/m_node_info in the InnoDB data dictionary has tablespace id 13, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.

InnoDB: Please refer to

InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

InnoDB: for how to resolve the issue.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Table monitor/m_node_link in the InnoDB data dictionary has tablespace id 8, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.

InnoDB: Please refer to

InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

InnoDB: for how to resolve the issue.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Table monitor/sequence in the InnoDB data dictionary has tablespace id 9, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.

InnoDB: Please refer to

InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

InnoDB: for how to resolve the issue.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Table mysql/innodb_index_stats in the InnoDB data dictionary has tablespace id 2, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.

InnoDB: Please refer to

InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

InnoDB: for how to resolve the issue.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Table mysql/innodb_table_stats in the InnoDB data dictionary has tablespace id 1, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.

InnoDB: Please refer to

InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

InnoDB: for how to resolve the issue.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Table mysql/slave_master_info in the InnoDB data dictionary has tablespace id 4, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.

InnoDB: Please refer to

InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

InnoDB: for how to resolve the issue.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Table mysql/slave_relay_log_info in the InnoDB data dictionary has tablespace id 3, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.

InnoDB: Please refer to

InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

InnoDB: for how to resolve the issue.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Table mysql/slave_worker_info in the InnoDB data dictionary has tablespace id 5, but tablespace with that id or name does not exist. Have you deleted or moved .ibd files? This may also be a table created with CREATE TEMPORARY TABLE whose .ibd and .frm files MySQL automatically removed, but the table still exists in the InnoDB internal data dictionary.

InnoDB: Please refer to

InnoDB: http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html

InnoDB: for how to resolve the issue.

2016-09-04 11:53:12 30354 [Note] InnoDB: 128 rollback segment(s) are active.

2016-09-04 11:53:12 30354 [Note] InnoDB: Waiting for purge to start

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Failed to find tablespace for table '"mysql"."innodb_index_stats"' in the cache. Attempting to load the tablespace with space id 2.

2016-09-04 11:53:12 7fba7ebfd700  InnoDB: Operating system error number 2 in a file operation.

InnoDB: The error means the system cannot find the path specified.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/innodb_index_stats'. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html for how to resolve the issue.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Failed to find tablespace for table '"mysql"."innodb_table_stats"' in the cache. Attempting to load the tablespace with space id 1.

2016-09-04 11:53:12 7fba7ebfd700  InnoDB: Operating system error number 2 in a file operation.

InnoDB: The error means the system cannot find the path specified.

2016-09-04 11:53:12 30354 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/innodb_table_stats'. See http://dev.mysql.com/doc/refman/5.6/en/innodb-troubleshooting-datadict.html for how to resolve the issue.

2016-09-04 11:53:12 30354 [Note] InnoDB: 5.6.30 started; log sequence number 18718279764

ERROR: 1050  Table '`mysql`.`innodb_table_stats`' already exists

2016-09-04 11:53:12 30354 [ERROR] Aborting

2016-09-04 11:53:12 30354 [Note] Binlog end

2016-09-04 11:53:12 30354 [Note] InnoDB: FTS optimize thread exiting.

2016-09-04 11:53:12 30354 [Note] InnoDB: Starting shutdown...

2016-09-04 11:53:14 30354 [Note] InnoDB: Shutdown completed; log sequence number 18718317797

2016-09-04 11:53:14 30354 [Note] /usr/sbin/mysqld: Shutdown complete

warning: MySQL-server-5.6.30-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing...                ########################################### [100%]

1:MySQL-server           ########################################### [100%]

2016-09-04 12:03:29 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2016-09-04 12:03:29 0 [Note] /usr/sbin/mysqld (mysqld 5.6.30) starting as process 30790 ...

2016-09-04 12:03:29 30790 [Note] InnoDB: Using atomics to ref count buffer pool pages

2016-09-04 12:03:29 30790 [Note] InnoDB: The InnoDB memory heap is disabled

2016-09-04 12:03:29 30790 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2016-09-04 12:03:29 30790 [Note] InnoDB: Memory barrier is not used

2016-09-04 12:03:29 30790 [Note] InnoDB: Compressed tables use zlib 1.2.3

2016-09-04 12:03:29 30790 [Note] InnoDB: Using Linux native AIO

2016-09-04 12:03:29 30790 [Note] InnoDB: Using CPU crc32 instructions

2016-09-04 12:03:29 30790 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2016-09-04 12:03:29 30790 [Note] InnoDB: Completed initialization of buffer pool

2016-09-04 12:03:29 30790 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!

2016-09-04 12:03:29 30790 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB

2016-09-04 12:03:29 30790 [Note] InnoDB: Database physically writes the file full: wait...

2016-09-04 12:03:29 30790 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB

2016-09-04 12:03:29 30790 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB

2016-09-04 12:03:30 30790 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0

2016-09-04 12:03:30 30790 [Warning] InnoDB: New log files created, LSN=45781

2016-09-04 12:03:30 30790 [Note] InnoDB: Doublewrite buffer not found: creating new

2016-09-04 12:03:30 30790 [Note] InnoDB: Doublewrite buffer created

2016-09-04 12:03:30 30790 [Note] InnoDB: 128 rollback segment(s) are active.

2016-09-04 12:03:30 30790 [Warning] InnoDB: Creating foreign key constraint system tables.

2016-09-04 12:03:30 30790 [Note] InnoDB: Foreign key constraint system tables created

2016-09-04 12:03:30 30790 [Note] InnoDB: Creating tablespace and datafile system tables.

2016-09-04 12:03:30 30790 [Note] InnoDB: Tablespace and datafile system tables created.

2016-09-04 12:03:30 30790 [Note] InnoDB: Waiting for purge to start

2016-09-04 12:03:30 30790 [Note] InnoDB: 5.6.30 started; log sequence number 0

A random root password has been set. You will find it in '/root/.mysql_secret'.

2016-09-04 12:03:30 30790 [Note] Binlog end

2016-09-04 12:03:30 30790 [Note] InnoDB: FTS optimize thread exiting.

2016-09-04 12:03:30 30790 [Note] InnoDB: Starting shutdown...

2016-09-04 12:03:31 30790 [Note] InnoDB: Shutdown completed; log sequence number 1625977

2016-09-04 12:03:31 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).

2016-09-04 12:03:31 0 [Note] /usr/sbin/mysqld (mysqld 5.6.30) starting as process 30812 ...

2016-09-04 12:03:31 30812 [Note] InnoDB: Using atomics to ref count buffer pool pages

2016-09-04 12:03:31 30812 [Note] InnoDB: The InnoDB memory heap is disabled

2016-09-04 12:03:31 30812 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins

2016-09-04 12:03:31 30812 [Note] InnoDB: Memory barrier is not used

2016-09-04 12:03:31 30812 [Note] InnoDB: Compressed tables use zlib 1.2.3

2016-09-04 12:03:31 30812 [Note] InnoDB: Using Linux native AIO

2016-09-04 12:03:31 30812 [Note] InnoDB: Using CPU crc32 instructions

2016-09-04 12:03:31 30812 [Note] InnoDB: Initializing buffer pool, size = 128.0M

2016-09-04 12:03:32 30812 [Note] InnoDB: Completed initialization of buffer pool

2016-09-04 12:03:32 30812 [Note] InnoDB: Highest supported file format is Barracuda.

2016-09-04 12:03:32 30812 [Note] InnoDB: 128 rollback segment(s) are active.

2016-09-04 12:03:32 30812 [Note] InnoDB: Waiting for purge to start

2016-09-04 12:03:32 30812 [Note] InnoDB: 5.6.30 started; log sequence number 1625977

2016-09-04 12:03:32 30812 [Note] Binlog end

2016-09-04 12:03:32 30812 [Note] InnoDB: FTS optimize thread exiting.

2016-09-04 12:03:32 30812 [Note] InnoDB: Starting shutdown...

2016-09-04 12:03:33 30812 [Note] InnoDB: Shutdown completed; log sequence number 1625987

A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !

You will find that password in '/root/.mysql_secret'.

You must change that password on your first connect,

no other statement but 'SET PASSWORD' will be accepted.

See the manual for the semantics of the 'password expired' flag.

Also, the account for the anonymous user has been removed.

In addition, you can run:

/usr/bin/mysql_secure_installation

which will also give you the option of removing the test database.

This is strongly recommended for production servers.

See the manual for more instructions.

Please report any problems at http://bugs.mysql.com/

The latest information about MySQL is available on the web at

http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

WARNING: Found existing config file /usr/my.cnf on the system.

Because this file might be in use, it was not replaced,

but was used in bootstrap (unless you used --defaults-file)

and when you later start the server.

The new default config file was created as /usr/my-new.cnf,

please compare it with your file and take the changes you need.

四、配置datadir路径

vi /usr/my.cnf

datadir=/data

启动

mysqld_safe &

service mysql start

五、修复数据

[Err] 1034 - Incorrect key file for table 'm_request_record'; try to repair it

mysql> repair table m_request_record;

退出mysql,执行如下修复动作:

myisamchk –of /data/monitor/m_request_record.MYI

myisamchk –r /data/monitor/m_request_record.MYI

myisamchk safe-reocver /data/monitor/m_request_record.MYI

Mysql-5.6.30卸载的更多相关文章

  1. MySQL 5.7.30 的安装/升级(所有可能的坑都在这里)

    楔子 由于之前电脑上安装的MySQL版本是比较老的了,大概是5.1的版本,不支持JSON字段功能.而最新开发部门开发的的编辑器产品,使用到了JSON字段的功能. 因此需要升级MySQL版本,升级的目标 ...

  2. CentOS 配置Apache+Mysql+PHP (yum)与卸载

    一.安装Apache2 #yum -y install httpd 安装配置完成,启动httpd服务#service httpd start 二.安装Mysql1.安装mysql#yum -y ins ...

  3. MySql的安装与卸载

    首先到官网下载MySQL,点击安装 出现的页面如下,依次安装就好了,安装过程中需要修改的只有编码格式,需要填写的是数据库的密码,MySQL的默认用户名为root,默认端口为3306,端口号最好不要修改 ...

  4. MySQL系列--1.安装卸载与用户权限管理

    MySQL安装 1.Ubuntu18下安装MySQL sudo apt-get install mysql-server MySQL的版本为5.7.25 2.登录MySQL 采用mysql-serve ...

  5. MySQL 5.6.30 升级到5.7.10

    MySQL 5.6.30 升级到5.7.10 注意,这种方式的前提是数据文件没有和软件目录在一起,如果在一起,需要停止数据库后先移动数据文件 1.解压5.7.10包到/usr/local2.停止当前的 ...

  6. 数据库MySQL的安装与卸载

    安装 MySQL  卸载 MySQL: 停止 MySQL 服务 开始-->所有应用-->Windows 管理工具-->服务,将 MySQL 服务停止. 卸载 mysql server ...

  7. mysql数据库安装与卸载以及Navicat安装

    关系型数据库Mysql 1.mysql官网网址:www.mysql.org 2.mysql数据库安装 傻瓜式安装下载地址 https://dev.mysql.com/downloads/install ...

  8. linux(Debian)下安装与MySql的安装、卸载、配置及使用

    参考资料:http://www.cnblogs.com/xusir/p/3334217.html 以下是简要记录. 一.安装 安装:apt-get install mysql-server mysql ...

  9. MySQL 性能优化 30个数据库设计的最佳实践

    数据库设计是整个程序的重点之一,为了支持相关程序运行,最佳的数据库设计往往不可能一蹴而就,只能反复探寻并逐步求精,这是一个复杂的过程,也是规划和结构化数据库中的数据对象以及这些数据对象之间关系的过程. ...

随机推荐

  1. in_array()和explode()的使用笔记

    今天使用explode函数是因为,在使用in_array()函数时候,in_array()的第二个参数是个数组,bool ( mixed $needle , array $haystack [, bo ...

  2. 仿5173游戏交易平台系统SQL注入(可直接脱裤)+Getshell

    最近没事登登好几年前玩过的游戏看看,发现有人喊高价收号,这一看就是骗子,这等骗子还想骗我?我就来看看这逗逼是怎么骗人的,结果发现这人给了一个说是 5173平台交易的网站,叫我直接把号的信息填上去然后填 ...

  3. 下载站中的下载连接其实是php脚本文件控制

    什么是php文件,PHP是一种服务器端HTML-嵌入式脚本描述语言. 其最强大和最重要的特征是其数据库集成层,使用它完成一个含有数据库功能的网页是不可置信的简单.在HTML文件中, PHP脚本程序(语 ...

  4. PHP显示日期、周几、农历初几、什么节日函数编程代码

    <?function rili($style,$Atime){ $debug = false; $glmonth = date("n",$Atime);    //1-12  ...

  5. [办公应用]我的WORD文档表格操作不灵活 无法调整列宽

    最近同事的一个word文档中的表格操作非常不灵活,用鼠标直接调整列宽时总觉得很不灵活.她的操作系统为XP,office 为微软office 2003. 我首先检查了木马,检查了输入法等,结果都没有问题 ...

  6. Javascript 笔记与总结(1-2)词法分析

    词法分析,按顺序分析 3 样: 第 1 步:先分析参数 第 2 步:再分析变量声明 第 3 步:再分析函数声明 一个函数能使用的局部变量,就从上面 3 步分析而来. 具体步骤: 0:函数运行前的瞬间, ...

  7. T-SQL 操作练习

    create table Person #新建表格 ( Ids int auto_increment primary key, #主键,自增 Name ) not null, #非空 Age int, ...

  8. bug 发表文章不显示图片

    bug 描述: 现象是我们这不能发布图片, 测试说患教方向是可以正常发布图片的(还是要感激测试,正是他们鞭策我们不断挑战困难,解决之,从而提高自己姿势水平). 图片没上传上去, 服务端协助查找发现没调 ...

  9. struct stat结构体的详解和用法

    [cpp] view plaincopy //! 需要包含de头文件 #include <sys/types.h> #include <sys/stat.h> S_ISLNK( ...

  10. HBase学习笔记-基础(一)

    HBase版本:0.97 1.Get Gets实在Scan的基础上实现的. 2.联合查询(Join) HBase是否支持联合是一个网上常问问题.简单来说 : 不支持.至少不像传统RDBMS那样支持. ...