还有错误

[root@localhost /]# mysqldump --all-databases --user=root --password --master-data > backupdatabase.sql              #备份原数据库
Enter password:
mysqldump: Error: Binlogging on server not active   #提示启动过日志
[root@localhost /]# vi /etc/my.cnf   #    [mysqld]  添加 log-bin = mysql-bin     启动日志功能

[root@localhost /]# service mysqld stop   #  centos6  chkconfig mysqld off     centos7 [root@localhost ~]# systemctl disable mysqld.service  删除开机启动

第三步:卸载mysql:

1
[root@server ~]# yum remove mysql* mysql-server mysql-devel mysql-libs

上面的命令将你当前MySQL的配置文件/etc/my.cnf文件到/etc/my.cnf.rpmsave进行备份。

第四步:安装REMI存储库,以解决MySQL的兼容性问题

你可能会得到在安装MariaDB的依赖关系错误。因此,让我们添加REMI存储库来解决依赖性问题。感谢AskMonty知识库帮我解决依赖关系问题。

1
[root@server ~]# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

这一步提示错误

[root@localhost ~]# rpm -ivh remi-release-6.rpm                             警告:remi-release-6.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID 00f97f56: NOKEY
错误:依赖检测失败:
        epel-release >= 6 被 remi-release-6.5-1.el6.remi.noarch 需要

[root@localhost ~]# wget ftp://ftp.pbone.net/mirror/dl.iuscommunity.org/pub/ius/archive/Redhat/6/i386/epel-release-6-5.noarch.rpm    #下载epel-release

[root@localhost ~]# rpm -ivh epel-release-6-5.noarch.rpm

[root@localhost ~]# rpm -ivh remi-release-6.rpm     #解决

现在安装compat-mysql55包:

1
[root@server ~]# yum --enablerepo=remi-test --disablerepo=remi install compat-mysql55

第五步:安装Mariadb:

创建一个库文件为MariaDB的,并添加以下几行:

对于32位系统:

1
2
3
4
5
6
7
8
[root@server ~]# vi /etc/yum.repos.d/mariadb.repo 
# MariaDB 5.5 CentOS repository list - created  
# http://mariadb.org/mariadb/repositories/ 
[mariadb] 
name = MariaDB 
baseurl = http://yum.mariadb.org/5.5/centos6-x86 
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB 
gpgcheck=1

对于64为系统:

1
2
3
4
5
6
7
[root@server ~]# vi /etc/yum.repos.d/mariadb.repo 
# MariaDB 5.5 CentOS repository list 
# http://mariadb.org/mariadb/repositories/ 
[mariadb]
name = MariaDB 
baseurl = http://yum.mariadb.org/5.5/centos6-amd64 
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB 
gpgcheck=1

保存并退出运行

1
#yum update

下载开始安装Mariadb:

1
[root@server ~]# yum install MariaDB-devel MariaDB-client MariaDB-server -y

安装过程提示冲突, yum remove mysql-community-common    卸载后接着上面的安装就成功了

第六步:启动Mariadb服务

1
2
3
[root@server ~]# service mysql start 
Starting MySQL...... SUCCESS! 
[root@server ~]# chkconfig mysql on

mariabd mysql升级mariadb的更多相关文章

  1. 【MySQL】TokuDB引擎初探(MySQL升级为Percona,MySQL升级为MariaDB)

    参考:http://blog.sina.com.cn/s/blog_4673e6030102v46l.html 参考:http://hcymysql.blog.51cto.com/5223301/14 ...

  2. MySQL与MariaDB核心特性比较详细版v1.0(覆盖mysql 8.0/mariadb 10.3,包括优化、功能及维护)

    注:本文严禁任何形式的转载,原文使用word编写,为了大家阅读方便,提供pdf版下载. MySQL与MariaDB主要特性比较详细版v1.0(不含HA).pdf 链接:https://pan.baid ...

  3. UBUNTU 16.04 LTS SERVER 手动升级 MariaDB 到最新版 10.2

    UBUNTU 16.04 LTS SERVER 手动升级 MariaDB 到最新版 10.2 1. 起因 最近因为不同软件的数据问题本来只是一些小事弄着弄着就越弄越麻烦了,期间有这么个需求,没看到有中 ...

  4. CentOS 7 安装 WordPress,PHP,Nginx,MySQL(MariaDB),FTP

    主要资料参考:https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-st ...

  5. MySQL 升级详细步骤 (包括 Percona)

    MySQL 升级步骤 MySQL 5.1.72 升级到 MySQL 5.5.36 鉴于我在升级的时候遇到的麻烦问题,我觉得有必要把一些细节说清楚,免得引起误解了.感觉官方文档上的升级步骤写的比较简单, ...

  6. MySQL(MariaDB)的 SSL 加密复制

    背景: 在默认的主从复制过程或远程连接到MySQL/MariaDB所有的链接通信中的数据都是明文的,在局域网内连接倒问题不大:要是在外网里访问数据或则复制,则安全隐患会被放大很多.由于项目要求需要直接 ...

  7. Navicat(服务器对象) -2之MySQL 或 MariaDB 对象

    MySQL 或 MariaDB 对象 http://www.navicat.com.cn/manual/online_manual/cn/navicat/win_manual/index.html 要 ...

  8. mysql升级小结和mysql_upgrade的用途

    http://blog.itpub.net/15480802/viewspace-1412259/ mysql升级 1 升级方式 分为In-place和out-of-place,前者直接覆盖当前版本, ...

  9. MySQL并发复制系列三:MySQL和MariaDB实现对比

    http://blog.itpub.net/28218939/viewspace-1975856/ 并发复制(Parallel Replication) 系列三:MySQL 5.7 和MariaDB ...

随机推荐

  1. java#java.util.Date与java.time.LocalDateTime的转换

    转换主要通过Instant来进行的. Date date = new Date(); LocalDateTime localDateTime = LocalDateTime.ofInstant(dat ...

  2. http https 干货

    HTTPS原理  在谈HTTPS原理之前,首先了解一下Http和Https的区别.     Http(全称:Hyper Text Transfer Protocol),一般称为超文本传输协议,也是互联 ...

  3. B - Stacks of Flapjacks UVA - 120

    BackgroundStacks and Queues are often considered the bread and butter of data structures and find us ...

  4. POJ 1195:Mobile phones 二维树状数组

    Mobile phones Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 16893   Accepted: 7789 De ...

  5. 【pwnable.kr】input

    这道题是一道一遍一遍满足程序需求的题. 网上其他的题解都是用了C语言或者python语言的本地调用,我想联系一下pwntools的远程调用就写了下面的脚本, 执行效果可以通过1~4的检测,到最后soc ...

  6. Codeforces 459C Pashmak and Buses 机智数学题

    这个题目说的是有n个人,有k辆巴士,有m天,每天都要安排n个人坐巴士(可以有巴士为空),为了使得这n个人不会成为朋友,只要每两个人在这m天里坐的巴士至少一天不相同即可. 要你求是否有这样的安排方法,如 ...

  7. C#使窗体不显示在任务栏

    this.ShowInTaskbar = false;///使窗体不显示在任务栏

  8. SciKit-Learn 可视化数据:主成分分析(PCA)

    ## 保留版权所有,转帖注明出处 章节 SciKit-Learn 加载数据集 SciKit-Learn 数据集基本信息 SciKit-Learn 使用matplotlib可视化数据 SciKit-Le ...

  9. webpack散记--Typescript

    Typescript 1.js的超集 官网:typescriptlang.org/tslang.cn 来自:微软 安装:官方的  npm i typescript ts-loader --save-d ...

  10. es6的...

    es6的...      (1):函数rest参数和扩展          sum1(...sum){//传多个参数             let total=0;             for( ...