mysql 5.5升级5.6以上版本
来源:互联网 发布:sai mac没压感 编辑:程序博客网 时间:2024/06/11 02:00
1、下载yum的rpm配置
# rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
2、编辑yum的repo文件配置
# vi /etc/yum.repos.d/mysql-community.repo
1>打开文件后会有很多如下的mysql版本
2>需要安装哪个就设置 enabled=1 gpgcheck=1
3>安装进入步骤3(推荐)
升级进入步骤4(不建议升级、除非数据库太大不好迁移)
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/5/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
3、现在就可以通过yum安装mysql5.6或者其它版本了
# yum install mysqld -y
# yum install mysql-server -y
4、如果是升级mysql则
#yum update mysql-server
#yum list installed | grep "^mysql"
#yum -y upgrade mysql
#service mysqld start
#mysql_upgrade
如果启动服务出现什么莫名其妙的sock等等
#vi /var/log/mysqld.log
2015-09-14 18:05:02 3395 [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
2015-09-14 18:05:02 3395 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2015-09-14 18:05:02 3395 [ERROR] Plugin 'InnoDB' init function returned error.
2015-09-14 18:05:02 3395 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-09-14 18:05:02 3395 [ERROR] Unknown/unsupported storage engine: InnoDB
2015-09-14 18:05:02 3395 [ERROR] Aborting
#vi my.cnf
innodb_data_file_path = ibdata1:10m:autoextend
service mysqld restart
# rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
2、编辑yum的repo文件配置
# vi /etc/yum.repos.d/mysql-community.repo
1>打开文件后会有很多如下的mysql版本
2>需要安装哪个就设置 enabled=1 gpgcheck=1
3>安装进入步骤3(推荐)
升级进入步骤4(不建议升级、除非数据库太大不好迁移)
[mysql56-community]
name=MySQL 5.6 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.6-community/el/5/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
3、现在就可以通过yum安装mysql5.6或者其它版本了
# yum install mysqld -y
# yum install mysql-server -y
4、如果是升级mysql则
#yum update mysql-server
#yum list installed | grep "^mysql"
#yum -y upgrade mysql
#service mysqld start
#mysql_upgrade
如果启动服务出现什么莫名其妙的sock等等
#vi /var/log/mysqld.log
2015-09-14 18:05:02 3395 [ERROR] InnoDB: auto-extending data file ./ibdata1 is of a different size 640 pages (rounded down to MB) than specified in the .cnf file: initial 768 pages, max 0 (relevant if non-zero) pages!
2015-09-14 18:05:02 3395 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2015-09-14 18:05:02 3395 [ERROR] Plugin 'InnoDB' init function returned error.
2015-09-14 18:05:02 3395 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-09-14 18:05:02 3395 [ERROR] Unknown/unsupported storage engine: InnoDB
2015-09-14 18:05:02 3395 [ERROR] Aborting
#vi my.cnf
innodb_data_file_path = ibdata1:10m:autoextend
service mysqld restart
阅读全文
0 0
- mysql 5.5升级5.6以上版本
- mysql 5.5以上版本的配置
- mysql 5.5以上版本主从复制
- cmake安装高版本MySQL(5.5以上版本)
- Linux下安装MySql(版本5.5以上)
- 实战:mysql版本升级
- 实战:mysql版本升级
- 升级 mysql 版本
- centos yum升级到mysql 5.6 指定版本 平滑升级
- [mysql]5.7以上版本更改root密码
- mysql配置(针对5.7以上版本)
- mysql 5.7以上版本的安装
- mysql 5.7以上版本下载及安装
- mysql 5.7以上版本下载及安装
- mysql 5.7以上版本命令行安装配置
- MAC Ruby版本需要升级至2.2.2以上
- MAC Ruby版本需要升级至2.2.2以上
- CentOS 7.0 升级Linux内核3.9及以上版本
- JavaWeb之 JSP:自定义标签
- 二分查找法
- Python之路【第3天】
- Android业务组件化之URL Scheme使用
- 炫龙毁灭者DDPro笔记本bios设置u盘启动教程
- mysql 5.5升级5.6以上版本
- SVN提交是missing状态处理
- 质量管理体系和行业标准
- Android通知之通知栏点击通知后返回正在运行的程序,而不是一个新Activity
- Linux下libevent安装
- SSH中,使用Hibernate执行数据库操作时,报could not retrieve snapshot
- javascript语法
- Maven入门
- h264 ffmpeg 400 交叉编译