PDA

View Full Version : mysql export/import problems...


Trosun
01-04-2005, 06:55 AM
I did a backup, using the admincp. It gave me forumbackup-01-04-2005.sql

Reinstalled.

But when i try to run it i get:

ERROR 1064 (42000) at line 11615: 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 'desc text collate latin1_danish_ci NOT NULL,
ability text collate latin1_danis' at line 5

I haven't touched the file, and i'm really new at this.
What could possibly be wrong? And how do i fix it?

manguish
01-04-2005, 07:20 AM
Don't use the admincp for db backups.

Use phpmyadmin or SSH.

Trosun
01-04-2005, 08:04 AM
yes i know.
But i didn't get a timeout or anything.
I just thought this was a no-no because of the timeout.

But the db is non-existant. All i got is the sql file.
So i can't make another backup/dump.

rake
01-04-2005, 08:55 AM
That's obviously a table that was added with a hack you installed. The error comes from the DESC field in that table, which is a reserved SQL word. Open the file, find that desc field and put ` around it: `desc`.

Or, dump the database again (if it's not too large) using phpmyadmin and be sure to check the "enclose field names in backquotes" option.

Trosun
01-05-2005, 08:06 AM
I just removed all the 'inferno_*' thingys.
But now i can't load the entire file because of "max_sends". It's limited to 36000.

What do i do now? Split the file up?
Cause then i get;

ERROR 1062 (23000) at line 1: Duplicate entry '47448' for key 1

please advice...