ndbcluster引擎表同步到innodb引擎报错Error 'Unknown storage engine 'ndbcluster'

环境是 ndbcluster集群环境到innodb环境的复制环境 在master上执行

CREATE TABLE t3 (id int unsigned NOT NULL auto_increment PRIMARY KEY) ENGINE=ndbcluster;

在slave查看发现复制Slave_SQL_Running停止了,如下

mysql> show slave status \G;

*************************** 1. row ***************************

Slave_IO_State: Waiting for master to send event

Master_Host: 192.168.1.91

Master_User: myslave

Master_Port: 3306

Connect_Retry: 60

Master_Log_File: ndb1.000010

Read_Master_Log_Pos: 1149

Relay_Log_File: mydb3-relay-bin.000002

Relay_Log_Pos: 1113

Relay_Master_Log_File: ndb1.000010

Slave_IO_Running: Yes

Slave_SQL_Running: No

Replicate_Do_DB:

Replicate_Ignore_DB:

Replicate_Do_Table:

Replicate_Ignore_Table: mysql.ndb_apply_status

Replicate_Wild_Do_Table:

Replicate_Wild_Ignore_Table: mysql.ndb\_index\_stat\_%

Last_Errno: 1286                    Last_Error: Error 'Unknown storage engine 'ndbcluster'' on query. Default database: 'myslave'. Query: 'CREATE TABLE `slavetest` ( `id`  int NULL , `name`  varchar(20) NULL , PRIMARY KEY (`id`) ) ENGINE=ndbcluster'                  Skip_Counter: 0           Exec_Master_Log_Pos: 955               Relay_Log_Space: 1480               Until_Condition: None                Until_Log_File:                  Until_Log_Pos: 0            Master_SSL_Allowed: No            Master_SSL_CA_File:             Master_SSL_CA_Path:                Master_SSL_Cert:              Master_SSL_Cipher:                 Master_SSL_Key:          Seconds_Behind_Master: NULL Master_SSL_Verify_Server_Cert: No                 Last_IO_Errno: 0                 Last_IO_Error:                 Last_SQL_Errno: 1286                Last_SQL_Error: Error 'Unknown storage engine 'ndbcluster'' on query. Default database: 'myslave'. Query: 'CREATE TABLE `slavetest` ( `id`  int NULL , `name`  varchar(20) NULL , PRIMARY KEY (`id`) ) ENGINE=ndbcluster'   Replicate_Ignore_Server_Ids:               Master_Server_Id: 1000                   Master_UUID: 67004af0-0c27-11e6-9fff-7427eaa3c20f              Master_Info_File: /data/mysql/master.info                     SQL_Delay: 0           SQL_Remaining_Delay: NULL       Slave_SQL_Running_State:             Master_Retry_Count: 86400                   Master_Bind:        Last_IO_Error_Timestamp:       Last_SQL_Error_Timestamp: 160427 09:13:29                Master_SSL_Crl:             Master_SSL_Crlpath:             Retrieved_Gtid_Set:              Executed_Gtid_Set:                  Auto_Position: 0 1 row in set (0.00 sec) ERROR:  No query specified 跳过这个错误: mysql> stop slave; Query OK, 0 rows affected (0.06 sec) mysql> SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1; Query OK, 0 rows affected (0.00 sec) mysql> start slave; Query OK, 0 rows affected (0.06 sec) mysql>  mysql> show slave status \G; *************************** 1. row ***************************                Slave_IO_State: Waiting for master to send event                   Master_Host: 192.168.1.91                   Master_User: myslave                   Master_Port: 3306                 Connect_Retry: 60               Master_Log_File: ndb1.000010           Read_Master_Log_Pos: 1149                Relay_Log_File: mydb3-relay-bin.000003                 Relay_Log_Pos: 278         Relay_Master_Log_File: ndb1.000010              Slave_IO_Running: Yes             Slave_SQL_Running: Yes               Replicate_Do_DB:            Replicate_Ignore_DB:             Replicate_Do_Table:         Replicate_Ignore_Table: mysql.ndb_apply_status       Replicate_Wild_Do_Table:    Replicate_Wild_Ignore_Table: mysql.ndb\_index\_stat\_%                    Last_Errno: 0                    Last_Error:                   Skip_Counter: 0           Exec_Master_Log_Pos: 1149               Relay_Log_Space: 1638               Until_Condition: None                Until_Log_File:                  Until_Log_Pos: 0            Master_SSL_Allowed: No            Master_SSL_CA_File:             Master_SSL_CA_Path:                Master_SSL_Cert:              Master_SSL_Cipher:                 Master_SSL_Key:          Seconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: No                 Last_IO_Errno: 0                 Last_IO_Error:                 Last_SQL_Errno: 0                Last_SQL_Error:    Replicate_Ignore_Server_Ids:               Master_Server_Id: 1000                   Master_UUID: 67004af0-0c27-11e6-9fff-7427eaa3c20f              Master_Info_File: /data/mysql/master.info                     SQL_Delay: 0           SQL_Remaining_Delay: NULL       Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it            Master_Retry_Count: 86400                   Master_Bind:        Last_IO_Error_Timestamp:       Last_SQL_Error_Timestamp:                 Master_SSL_Crl:             Master_SSL_Crlpath:             Retrieved_Gtid_Set:              Executed_Gtid_Set:                  Auto_Position: 0 1 row in set (0.00 sec) ERROR:  No query specified 解决ndbcluster表到innodb引擎同步方法如下: 在master设置默认的存储引擎 default-storage-engine=ndbcluster 在创建表的时候不要显式指定存储引擎 mysql> use myslave; Database changed mysql>  mysql> CREATE TABLE t2 (id int unsigned NOT NULL auto_increment PRIMARY KEY); Query OK, 0 rows affected (0.81 sec) 查看slave发现同步正常

mysql engine ndb_ndbcluster引擎表同步到innodb引擎报错Error 'Unknown storage engine 'ndbcluster'...相关推荐

  1. unknown error mysql_mysql执行sql文件报错Error: Unknown storage engine‘InnoDB’的解决方法...

    发现问题 最近在工作中遇到一个问题,在运行了一个innoDB类型的sql文件,报了Error: Unknown storage engine 'InnoDB'错误,网上查了很多方法,但是都没办法真正解 ...

  2. mysql innodb 报错_mysql报错1286 Unknown storage engine 'InnoDB'

    转载地址:https://blog.csdn.net/shiqijiamengjie/article/details/50099479 今天,在进行mysql数据传输的时候,出现了这样的错误! 一时, ...

  3. unknown error mysql_解决MySQL执行SQL文件时报Error: Unknown storage engine 'InnoDB'的错误

    我运行了一个innoDB类型的sql文件,报了Error: Unknown storage engine 'InnoDB'错误,网上查了很多方法,但是都没办法真正解决我的问题,后来解决了,在这里总结一 ...

  4. mysql 5.7 1819_MySQL 5.7设置简单密码报错ERROR 1819 (HY000)

    MySQL 5.7设置简单密码报错ERROR 1819 (HY000): Your password does not satisfy the current policy requirements. ...

  5. 【操作经验】Mysql如何加载导入大批量数据,解决报错ERROR 3948 (42000)

    前言:新装mysql,遇到ERROR 3948 (42000):Loading local data is disabled; this must be enabled on both the cli ...

  6. mysql报错ERROR 1206 (HY000): The total number of locks exceeds the lock table size的解决方法...

    1. 问题背景         InnoDB是新版MySQL(v5.5及以后)默认的存储引擎,之前版本的默认引擎为MyISAM,因此,低于5.5版本的mysql配置文件.my.cnf中,关于InnoD ...

  7. mysql 1286错误_通过navicat做myslq数据同步时报[Err] [Dtf] 1286 - Unknown storage engine InnoDB错误...

    一.问题描述 通过navicat进行mysql数据库数据迁移和导出sql脚本时,报出"[Err] [Dtf] 1286 - Unknown storage engine 'InnoDB'.. ...

  8. MySQL备份/还原 Unknown storage engine 'InnoDB'

    今天做了这样一个操作,在同事的电脑上使用SQLyog导出数据库 1.首先连接原来的数据库.选"新建".按提示填入您的原来mysql数据库的相关信息,然后点连接. 2.在菜单栏点击工 ...

  9. 解决在phpmyadmin中执行sql语句出现的错误:Unknown storage engine 'InnoDB'

    做留言系统时遇到情况                  - - 在phpmyadmin中执行下列语句: CREATE TABLE `message` (   `id` tinyint(1) NOT N ...

  10. 数据库连接报错:1086 - Unknown storage engine ‘InnoDB‘

    数据库连接报错:1086 - Unknown storage engine 'InnoDB' Navicat命令行查询没有InnoDB或者为Support值为NO mysql> show eng ...

最新文章

  1. Linux执行可执行文件提示No such file or directory的解决方法
  2. matlab简单程序实例_visual basic VB.NET实例系列教程第一节(简单实用抽奖程序)...
  3. 使用 Excel 读取 SAP ABAP CDS View 通过 ODBC 暴露出来的数据
  4. 12c oracle 修改内存_Oracle Database 12c In-Memory(内存数据库) 基本原理与简介
  5. Flume-概述-安装
  6. 平台的本质——保险公司互联网平台建设系列
  7. 日历控件,可运行在XHTML1.0下
  8. Android MVP开发模式及Retrofit + RxJava封装
  9. java非字符文件的复制--图片复制
  10. 金融科技领域的安全威胁及金融科技安全分析
  11. 读书笔记_算法第四版(一)
  12. H5实现点击图片放大功能
  13. 语音识别工具Sphinx4
  14. 财会法规与职业道德【6】
  15. web前端入门到实战:纯CSS实现数据上报和HTML验证
  16. 【实用网址】:平常用不到,想用的时候找不到
  17. Chrome插件开发学习心得(一)之前期开发
  18. dell 服务器引导盘安装2003
  19. Iphone8 plus系统照片为什么电脑打不开 打开heic文件教程
  20. 剖析微商到微伤的全过程

热门文章

  1. [Azure - VM] 解决办法:无法通过SSH连接VM,解决错误:This service allows sftp connections only.
  2. Unity使用脚本动态修改材质球的颜色
  3. 饥荒联机云服务器_饥荒(Don't Starve Together)腾讯云服务器搭建(unbuntu篇)
  4. 淘宝闲鱼京东等电商api的简单调用
  5. 西电数据挖掘实验3——复杂网络社团检测
  6. 2022-03-25 redis哨兵处理failover
  7. FineBI中tomcat服务器部署
  8. win10虚拟机环境下运行驱动程序
  9. requires that an attribute name is preceded by whitespace异常
  10. [个人笔记] ssh-keygen和openssl工具的使用