Bug #2883 InnoDB tablespace format downgraded
Submitted: 19 Feb 2004 0:45 Modified: 19 Feb 2004 6:18
Reporter: Sebastian Bergmann Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S3 (Non-critical)
Version:4.1.2-alpha OS:Linux (Linux 2.6.3)
Assigned to: CPU Architecture:Any

[19 Feb 2004 0:45] Sebastian Bergmann
Description:
InnoDB: You are downgrading from the multiple tablespace format of
InnoDB: >= MySQL-4.1.1 back to the old format of MySQL-4.0.
InnoDB:
InnoDB: MAKE SURE that the mysqld server is idle, and purge and the insert
InnoDB: buffer merge have run to completion under >= 4.1.1 before trying to
InnoDB: downgrade! You can determine this by looking at SHOW INNODB STATUS:
InnoDB: if the Main thread is 'waiting for server activity' and SHOW
InnoDB: PROCESSLIST shows that you have ended all other connections
InnoDB: to mysqld, then purge and the insert buffer merge have been
InnoDB: completed.
InnoDB: If you have already created tables in >= 4.1.1, then those
InnoDB: tables cannot be used under 4.0.
InnoDB: NOTE THAT this downgrade procedure has not been properly tested!
InnoDB: The safe way to downgrade is to dump all InnoDB tables and recreate
InnoDB: the whole tablespace.

How to repeat:
rm -Rf /usr/local/mysql
./BUILD/compile-pentium
make install
./scripts/mysql_install_db
cp ./support-files/my-small.cnf /usr/local/mysql/var/my.cnf
chown -R mysql:daemon /usr/local/mysql
./support-files/mysql.server start

/usr/local/mysql/bin/mysql
create database phpOpenTracker;
exit;

/usr/local/mysql/bin/mysql phpOpenTracker < phpOpenTracker.sql

The phpOpenTracker.sql file contains CREATE TABLE ... TYPE=InnoDB; statements as well as INSERTs. After the above command has completed I see the pasted InnoDB messages in the /usr/local/mysql/var/wopr-mobile.err logfile.
[19 Feb 2004 6:18] Heikki Tuuri
Hi!

Thank you for alerting us! Code from 4.0.18 was accidentally merged to the 4.1 tree. I removed the code now from the 4.1 tree.

Regards,

Heikki