List:General Discussion« Previous MessageNext Message »
From:Steve Osborne Date:December 1 2001 12:14am
Subject:Re: SQL syntax error
View as plain text  
I created the file with ver 3.23.43, tried to recreate database on 3.22.32.
I administer 2 other databases the same commands and they work fine.  I
looked at the difference in the sql files, and those ones don't contain the
PACK_KEYS statement...just TYPE=myISAM.  The command used to create the sql
files hasn't changed, and the databases are hosted by the same ISP.  It's a
confusing situation.  I don't want to have to go back and manually change
each .sql file each day to complete the backup process.  I wouldn't get any
other work done.

Any other suggestions?


----- Original Message -----
From: "Steve Werby" <steve-lists@stripped>
To: "Steve Osborne" <s.osborne@stripped>; "MySQL (E-mail)"
Sent: Friday, November 30, 2001 2:58 PM
Subject: Re: SQL syntax error

> "Steve Osborne" <s.osborne@stripped> wrote:
> > I am receiving the following error when I try to restore a database
> > from an .sql file:
> > ERROR 1064 at line 12: You have an error in your SQL syntax near
> > 'PACK_KEYS=1' at line 11
> <snip>
> </snip>
> >
> > Cmd used to create sql:
> > mysqldump --user=username --add-drop-table -pblahblah
> > dbdatabasename>filename.sql
> >
> > Cmd used to restore from sql:
> > mysql --user=root -p backupdatabasename<filename.sql
> You didn't mention your version of MySQL, but I suspect it's old.  Remove
> the "PACK_KEYS=1" text and it should work fine.  I also suggest upgrading
> a more recent MySQL if in fact you're running an older version.
> --
> Steve Werby
> President, Befriend Internet Services LLC
> ---------------------------------------------------------------------
> Before posting, please check:
>   (the manual)
>           (the list archive)
> To request this thread, e-mail <mysql-thread92795@stripped>
> To unsubscribe, e-mail
> Trouble unsubscribing? Try:

SQL syntax errorSteve Osborne30 Nov
  • Re: SQL syntax errorSteve Werby30 Nov
  • Re: SQL syntax errorSteve Osborne1 Dec
    • Re: SQL syntax errorDan Nelson1 Dec