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

before trying to creeate the table
This commit is contained in:
msvensson@pilot.mysql.com 2008-03-06 10:16:14 +01:00
parent 5eb114bb4a
commit 4a5a4011c3
3 changed files with 24 additions and 0 deletions

View file

@ -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,

View file

@ -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,

View file

@ -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,