MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 16th, 2004, 10:06 AM
salvelinus salvelinus is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 24 salvelinus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
mysqldump error [Resolved]

I did a dump into a file, harry.sql. That went fine. But when I tried to read it back into a db, using the command:
Code:
mysql test < harry.sql

I get the error"
Code:
error 1064 at Line 12: You have an error in your SQL syntax near 'group 
( Age grouporder varchar(30) default NULL,
 Age group varchar(30) defau' at line 1

The relevant text in the harry.sql file appears to be:
Code:
DROP TABLE IF EXISTS `Age group`;
CREATE TABLE age group (
  Age grouporder varchar(30) default NULL,
  Age group varchar(30) default NULL,
  KEY ageorder (Age grouporder),
  KEY age (Age group)
) TYPE=MyISAM;

I'm new to mysql, but I don't see an error. Any ideas? Thanks.

Reply With Quote
  #2  
Old February 16th, 2004, 10:18 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Spaces in your table names are probably the culprit.
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #3  
Old February 16th, 2004, 10:19 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Field names, I meant, though spaces in table names in mysql (or anything, really) are a bad idea as well.

Reply With Quote
  #4  
Old February 16th, 2004, 10:34 AM
salvelinus salvelinus is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 24 salvelinus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks, I'll check that out. It seems strange, since it's coming from an existing mysql db on the server to the test db on my local machine. It seems like that'd be a problem on the server, too.
It's a huge .sql file, I wouldn't want to go through it to find all the field/table names. Over 100 tables w/dozens of fields in some.
I tried to a straight dump, but now the boss says there's a problem on the server.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > mysqldump error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway