Make sure to remova any old files related to mysql.ndb_apply_status

before trying to creeate the table
parent 5eb114bb
......@@ -12,6 +12,14 @@
-- connection slave
-- source include/have_innodb.inc
# Remove any old ndb_apply_status from slaves datadir
let $datadir= `SELECT @@datadir`;
--error 0,1
remove_file $datadir/mysql/ndb_apply_status.frm;
--error 0,1
remove_file $datadir/mysql/ndb_apply_status.ndb;
set @@global.slave_exec_mode= 'IDEMPOTENT';
CREATE TABLE mysql.ndb_apply_status
( server_id INT UNSIGNED NOT NULL,
......
......@@ -11,6 +11,14 @@
-- source include/master-slave.inc
-- connection slave
# Remove any old ndb_apply_status from slaves datadir
let $datadir= `SELECT @@datadir`;
--error 0,1
remove_file $datadir/mysql/ndb_apply_status.frm;
--error 0,1
remove_file $datadir/mysql/ndb_apply_status.ndb;
set @@global.slave_exec_mode= 'IDEMPOTENT';
CREATE TABLE mysql.ndb_apply_status
( server_id INT UNSIGNED NOT NULL,
......
......@@ -17,6 +17,14 @@ SET storage_engine=ndb;
--echo === NDB -> MYISAM ===
--echo
connection slave;
# Remove any old ndb_apply_status from slaves datadir
let $datadir= `SELECT @@datadir`;
--error 0,1
remove_file $datadir/mysql/ndb_apply_status.frm;
--error 0,1
remove_file $datadir/mysql/ndb_apply_status.ndb;
set @@global.slave_exec_mode= 'IDEMPOTENT';
CREATE TABLE mysql.ndb_apply_status
( server_id INT UNSIGNED NOT NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment