All,
I'm testing out dump and restore stuff at the moment. With MySQL 4.1.9 on RHEL 3 I do the following to get a dump of a InnoDB database.
mysqldump -u root -pXXXXXX --opt --databases some_db --single-transaction --flush-logs > /database/somedir/databaseID/dumpfile.sql
I can then restore this on MySQL 4.1.9 on Windows XP Pro with the following :
mysql -u root –pYYYYYYYY < /path/tofile/dumpfile.sql
All works.
Now I try a Export Database as SQL dump in SQLyog v4.05 (connected to the same RHEL 3 box) and it creates the sql file. If I then try and use SQLyog connected to the Windows XP Pro PC and do an Import from SQL dump I get the famous :
Error Code: 1005 - Can't create table '.\some_db\sometable_name.frm' (errno: 150)
Under the dump that I created I checked :
Include "USE dbname-" statement
Include "DROP TABLE" statement
Add Create database
Lock All Tables For Read
Flush Logs Before Dump
Add Lock Around Insert Statements
Set FOREIGN_KEY_CHECKS=0
and
Create Bulk Insert Statements
I've looked at the two dump files and can only see minor differences (some commands in upper case in one and lower case in the other etc.)
Is this just Unix/Linux Windows nastiness or am I doing something fundamentally wrong?
Apologies if this is in the wrong subject, I put it here since I'm just starting to use SQLyog.
Regards,
Matt