1
Hi
I'm trying to recreate a copy of my Intranet site at work (which runs on Xoops) locally at home. I've got a backup of the database using phpMyAdmin and all the XOOPS files.
I've installed XAMPP and got all that up and running a treat. No problems there.
However, when I try to restore my database using phpMyAdmin I get an error where it states that the syntax is wrong.
#1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE IF NOT EXISTS 'xoops_avatar' (
'avatar_id' mediumint(8)' unsing at line 1
So I tried installing MySQL Administrator instead and used it's restore feature (which is great by the way). I have tried it using both Latin1, Latin5 and UTF-8 as the encoding method. Using every one it reads the entire backup (it takes a couple of minutes to do in fact) and then says that the restore was successfull. Bu when I go and examine the database, all the tables are there,
but empty. They all say 0 bytes for the 'Data Lenght' and the 'Index Length' all say 1Kb. No data in em!
No, I'm guessing that the problem here is that the database at work uses MySQL 4.0.x (can't remeber exactly which version, but it's about 8 months old) and XAMPP uses the MySQL 5 I think. But I though MySQL Administrator could deal with both 4 and 5 database backups.
Does anyone know what the problem could be and how to fix?
Thanks
Ted