View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
chump




Joined: Jun 06, 2006
Posts: 1

PostPosted: Tue Jun 06, 2006 8:49 pm
Reply with quote

i have anb installed on my site, and it works great....my problem is, when i try to restore a backup with the backup file sent to my email i get this error message in phpmyadmin
Error
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unknown Punctuation String @ 646
STR: =;
SQL:
CREATE TABLE `nuke_advbackup` (
`id` int(11) NOT NULL default '0',
`backupdir` varchar(100) NOT NULL default 'backup',
`mail_to` varchar(255) NOT NULL default '',
`mail_from` varchar(255) NOT NULL default '',
`excludes` varchar(255) NOT NULL default '',
`lastdb` varchar(25) NULL,
`lastfile` varchar(25) NULL,
`autostate` varchar(4) NOT NULL default '',
`autoinc` int(11) NOT NULL default '48',
`autolast` int(22) NOT NULL default '0',
`autogzip` varchar(4) NOT NULL default '',
`automail` varchar(4) NOT NULL default '',
`autodel` varchar(10) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=;



what am i doing wrong? i can backup my db other ways and it works fine when i try to use the sql file.....why dont these backup files work for me? thanks for your help Very Happy
 
View user's profile Send private message
ThaPizza




Joined: Jun 09, 2006
Posts: 2

PostPosted: Fri Jun 09, 2006 3:11 am
Reply with quote

I have the same problem.
I found out when I needed to put a database file back Sad
Anyway I created a MySQL backup in the MyAdmin tool, which saved my ass Very Happy

Did you find the answer already Chump? Or still searching?
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 894

PostPosted: Fri Jun 09, 2006 4:08 pm
Reply with quote

The problem is with this part:

Code:
) TYPE=;


it should really be

Code:
) TYPE=MyISAM;


You can fix your backup by doing a find/replace of the above with a decent text editor.

To fix this, open up includes/dump.php

Find

Code:
$structure .= ") TYPE=".$statusrow['Type'];


Change to

Code:
$structure .= ") TYPE=".$statusrow['Engine'];
 
View user's profile Send private message Visit poster's website
ThaPizza




Joined: Jun 09, 2006
Posts: 2

PostPosted: Fri Jun 09, 2006 4:21 pm
Reply with quote

That works like a charm Smile

Thx alot m8 Razz
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 5 Hours