If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Error #1064, no clue what to do... Please Help!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-12, 19:53
ccie04 ccie04 is offline
Registered User
 
Join Date: Feb 2012
Posts: 1
Red face Error #1064, no clue what to do... Please Help!

I am running XAMPP on windows and when I try and import a file to create tables in the db, I get this error,

#1064 - 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 '\g create table performers (performer_name varchar(255) not null, producer_serv' at line 1

Here is the first line in the file:

create table producers (producer_server varchar(255) not null, type varchar(255) not null, version varchar(255), login varchar(255) not null, password varchar(255) not null, dbase varchar(255) not null, name varchar(255), address varchar(255))\g

Someone Please Help Me...
Reply With Quote
  #2 (permalink)  
Old 02-10-12, 20:15
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
WELL FIRST OFF i'D TRY REMOVING THE \G
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 02-10-12, 20:37
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
caps lock key b0rk3n, healdem?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #4 (permalink)  
Old 02-10-12, 21:02
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,606
Quote:
Originally Posted by healdem View Post
WELL FIRST OFF i'D TRY REMOVING THE \G
That sounds like a great plan to me!

R937, somedays when you want to really make a point... UPPERCASE HELPS MAKE THAT POINT!

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #5 (permalink)  
Old 02-11-12, 05:57
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
Quote:
Originally Posted by r937 View Post
caps lock key b0rk3n, healdem?
the GUI (the bodged interface) between the optical sub system, the main processing unit and filewriter subsystem failed. or put another way I din't see it
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #6 (permalink)  
Old 02-12-12, 04:17
it-iss.com it-iss.com is offline
Registered User
 
Join Date: Sep 2009
Location: San Sebastian, Spain
Posts: 620
Change the DELIMITER to \g
__________________
Ronan Cashell
Senior Oracle/MySQL DBA
http://www.it-iss.com
Reply With Quote
  #7 (permalink)  
Old 02-12-12, 10:01
sonic10 sonic10 is offline
Registered User
 
Join Date: Apr 2005
Posts: 29
Yes - you can remove the \g and you should be fine.

Once you have it created you can show status information on a table.

Code:
mysql> show create table A_Test\G
show create table A_Test\G
*********************************
Table: A_Test
Create Table: CREATE TABLE `A_Test` (
`pkey` int(11) NOT NULL auto_increment,
`a` int(11) default NULL,
`b` int(11) default NULL,
`c` int(11) default NULL,
`timeEnter` timestamp NOT NULL,
PRIMARY KEY  (`pkey`),
UNIQUE KEY `a` (`a`,`b`)
) TYPE=MyISAM DEFAULT CHARSET=latin1
1 row in set (0.00 sec)
__________________
Web Database Software - Build your own php mysql database.
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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On