Bluehost.com Web Hosting $6.95

MysSQL db not restoring

This is a discussion on MysSQL db not restoring within the PHP General forums, part of the PHP Programming Forums category; Sorry for the OT post but here goes... I do nightly dumps of a MySQL database and now I've ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-25-2003
Chris W. Parker
 
Posts: n/a
Default MysSQL db not restoring

Sorry for the OT post but here goes...

I do nightly dumps of a MySQL database and now I've finally mistakenly
emptied some tables I shouldn't have. I'd like to restore last nights
dump file.

This is the command I'm using:

mysql -u username -ppassword db_name < db_name.dump

I'm getting the following error:

ERROR 1064 at line 118: You have an error in your SQL syntax near
'unique (email)
) TYPE=MyISAM' at line 21


Anyone know why this is going wrong? Am I doing something obviously
wrong?


Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/
Reply With Quote
  #2 (permalink)  
Old 10-25-2003
Curt Zirzow
 
Posts: n/a
Default Re: [PHP] MysSQL db not restoring

* Thus wrote Chris W. Parker (cparker@swatgear.com):
>
> I'm getting the following error:
>
> ERROR 1064 at line 118: You have an error in your SQL syntax near
> 'unique (email)
> ) TYPE=MyISAM' at line 21


You probably have a field name that is a keyword of some sort. Hard
to tell without seeing the create table syntax.


Curt
--
"My PHP key is worn out"

PHP List stats since 1997:
http://zirzow.dyndns.org/html/mlists/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:18 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0