Commit 8e128374 authored by unknown's avatar unknown

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

before trying to creeate the table

parent bf70ac31
...@@ -12,6 +12,14 @@ ...@@ -12,6 +12,14 @@
-- connection slave -- connection slave
-- source include/have_innodb.inc -- 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'; set @@global.slave_exec_mode= 'IDEMPOTENT';
CREATE TABLE mysql.ndb_apply_status CREATE TABLE mysql.ndb_apply_status
( server_id INT UNSIGNED NOT NULL, ( server_id INT UNSIGNED NOT NULL,
......
...@@ -11,6 +11,14 @@ ...@@ -11,6 +11,14 @@
-- source include/master-slave.inc -- source include/master-slave.inc
-- connection slave -- 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'; set @@global.slave_exec_mode= 'IDEMPOTENT';
CREATE TABLE mysql.ndb_apply_status CREATE TABLE mysql.ndb_apply_status
( server_id INT UNSIGNED NOT NULL, ( server_id INT UNSIGNED NOT NULL,
......
...@@ -17,6 +17,14 @@ SET storage_engine=ndb; ...@@ -17,6 +17,14 @@ SET storage_engine=ndb;
--echo === NDB -> MYISAM === --echo === NDB -> MYISAM ===
--echo --echo
connection slave; 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'; set @@global.slave_exec_mode= 'IDEMPOTENT';
CREATE TABLE mysql.ndb_apply_status CREATE TABLE mysql.ndb_apply_status
( server_id INT UNSIGNED NOT NULL, ( 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