ERROR 1064 when trying to load dump from sql file

This is a discussion on ERROR 1064 when trying to load dump from sql file within the MySQL Database forums, part of the Database Forums category; Hi, Can somebody tell me what's wrong with the following syntax: G:\>mysql -u root --password=testpw test2x &...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-22-2006
docw@globetrotter.net
 
Posts: n/a
Default ERROR 1064 when trying to load dump from sql file

Hi,

Can somebody tell me what's wrong with the following syntax:

G:\>mysql -u root --password=testpw test2x < c:\test2x.sql

I get:

ERROR 1064 (42000) at line 34: 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 '' at line 1

Note: test2x is the database name.

thks

Reply With Quote
  #2 (permalink)  
Old 10-22-2006
irampagemc@gmail.com
 
Posts: n/a
Default Re: ERROR 1064 when trying to load dump from sql file

Should be:
mysql -u root -ptestpw test2x < 'test2x.sql'

docw@globetrotter.net wrote:
> Hi,
>
> Can somebody tell me what's wrong with the following syntax:
>
> G:\>mysql -u root --password=testpw test2x < c:\test2x.sql
>
> I get:
>
> ERROR 1064 (42000) at line 34: 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 '' at line 1
>
> Note: test2x is the database name.
>
> thks


Reply With Quote
  #3 (permalink)  
Old 10-22-2006
Kees Nuyt
 
Posts: n/a
Default Re: ERROR 1064 when trying to load dump from sql file

On 22 Oct 2006 12:52:26 -0700, docw@globetrotter.net wrote:

>Hi,
>
>Can somebody tell me what's wrong with the following syntax:
>
>G:\>mysql -u root --password=testpw test2x < c:\test2x.sql
>
>I get:
>
>ERROR 1064 (42000) at line 34: 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 '' at line 1
>
>Note: test2x is the database name.
>
>thks


The error is in the statement that starts on line 34 of your sql
script c:\test2x.sql. As you didn't post the script, we can't
tell what went wrong.
The MySQL error codes are documented in the manual, by the way.
--
( Kees
)
c[_] Build a fire for a man and he will be warm for
a day, but set fire to that man and he will be
warm forever! (Sun Tzu) (#443)
Reply With Quote
  #4 (permalink)  
Old 10-22-2006
Brian Wakem
 
Posts: n/a
Default Re: ERROR 1064 when trying to load dump from sql file

docw@globetrotter.net wrote:

> Hi,
>
> Can somebody tell me what's wrong with the following syntax:
>
> G:\>mysql -u root --password=testpw test2x < c:\test2x.sql
>
> I get:
>
> ERROR 1064 (42000) at line 34: 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 '' at line 1
>
> Note: test2x is the database name.
>
> thks



So you have an error on line 34, and you are asking us what's wrong with it
without posting it?


--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
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:37 AM.


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