dbTalk Databases Forums  

what does this error message mean?

comp.databases.mysql comp.databases.mysql


Discuss what does this error message mean? in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Geoff
 
Posts: n/a

Default what does this error message mean? - 12-25-2011 , 02:12 AM






Hello

I have just exported a table as .sql from one server and imported it
into mysql on another server.

The table seems to have loaded OK but I see the following

--------------------
Error
SQL query:

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

MySqL said
#1064
-----------------------

Any ideas please?!

Cheers

Geoff

Reply With Quote
  #2  
Old   
Kees Nuyt
 
Posts: n/a

Default Re: what does this error message mean? - 12-25-2011 , 05:46 AM






On Sun, 25 Dec 2011 08:12:55 +0000, Geoff <geoff (AT) invalid (DOT) invalid>
wrote:

Quote:
Hello

I have just exported a table as .sql from one server and imported it
into mysql on another server.

The table seems to have loaded OK but I see the following

--------------------
Error
SQL query:

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

MySqL said
#1064
-----------------------

Any ideas please?!
Statements of the form
/*!nnnnn statement */
are staements which not every version can handle.

1064 indicates a parse error.

What method did you use to export the sql file?
What method did you use to import the sql file?
What is the MySQL version of the source?
(service and client)
What is the MySQL version of the target?
(service and client)
Best regards,
--
( Kees Nuyt
)
c[_]

Reply With Quote
  #3  
Old   
Geoff
 
Posts: n/a

Default Re: what does this error message mean? - 12-26-2011 , 03:48 AM



On Sun, 25 Dec 2011 12:46:26 +0100, Kees Nuyt <k.nuyt (AT) nospam (DOT) demon.nl>
wrote:

Quote:
On Sun, 25 Dec 2011 08:12:55 +0000, Geoff <geoff (AT) invalid (DOT) invalid
wrote:

Hello

I have just exported a table as .sql from one server and imported it
into mysql on another server.

The table seems to have loaded OK but I see the following

--------------------
Error
SQL query:

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

MySqL said
#1064
-----------------------

Any ideas please?!
Kees

Quote:
Statements of the form
/*!nnnnn statement */
are staements which not every version can handle.
these statements are in the exported sql file;

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

the error message when importing the sql file has

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

note the 2 extra @ symbols in the error message?

The mysql server for the export is version 5.1.56 - that for the
import is v5.0.18-max.

Quote:
1064 indicates a parse error.
I clicked on the help icon netx to the 1064 but this gave no info.
Quote:
What method did you use to export the sql file?
I exported as an sql file. Looking at the options I see

1. Output

character set utf-8

2. Format specific options

display comments

3. Object creation options

the following are selected;

add create procedure / funtion / event statement
create table options / if not exist / auto_increment

For the import I select SQL and next to this it states "this format
has no options".

Any of the above help?!

Cheers

Geoff






Quote:
What method did you use to import the sql file?
What is the MySQL version of the source?
(service and client)
What is the MySQL version of the target?
(service and client)
Best regards,

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.