V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
xiaoyanbot
V2EX  ›  MySQL

MariaDB 版本 10.1.10,可以跟 mysql 哪个版本搭建主从? 兼容性比较好?

  •  
  •   xiaoyanbot · 2017-08-10 10:51:12 +08:00 · 4457 次点击
    这是一个创建于 2443 天前的主题,其中的信息可能已经有所发展或是发生改变。

    因此此前采用的一键环境包,MariaDB 版本 10.1.10

    现在要做迁移,想用主从复制的方式迁移数据

    请问社区各位大大,MariaDB 版本 10.1.10 ,可以跟 mysql 哪个版本搭建主从? 兼容性比较好?

    5 条回复    2017-08-10 15:21:50 +08:00
    pqee
        1
    pqee  
       2017-08-10 11:17:23 +08:00 via Android
    let someone google it for you
    coolwind
        2
    coolwind  
       2017-08-10 11:39:34 +08:00
    建議備份後導入 mysql 吧

    從下面信息看,mariadb 的 binlog 看起來不兼容 mysql 的

    https://mariadb.com/kb/en/mariadb/setting-up-replication/

    Replicating from MySQL master to MariaDB slave

    Replication from MySQL 5.6 with GTID, binlog_rows_query_log_events and ignorable events works starting from MariaDB 10.0.22 and MariaDB 10.1.8. In this case MariaDB will remove the MySQL GTIDs and other unneeded events and instead adds its own GTIDs.
    xiaoyanbot
        3
    xiaoyanbot  
    OP
       2017-08-10 14:16:06 +08:00
    @coolwind 备份后的话, 原来的账户信息可以保存吗?
    yylzcom
        4
    yylzcom  
       2017-08-10 14:45:31 +08:00
    https://www.gubo.org/script-dump-all-mysql-databases/

    第一种把 MySQL 帐号密码信息都导出了
    sprintfan
        5
    sprintfan  
       2017-08-10 15:21:50 +08:00
    建议版本一致,小版本号都要一致,不然你会准备跑路的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3161 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 13:14 · PVG 21:14 · LAX 06:14 · JFK 09:14
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.