"DePhillips, Michael P" <[EMAIL PROTECTED]> wrote:
> 
> Using version 4.0.15
> 
> I'm trying to copy a database. Copy db1 to (new) db2.
> 
> 
> So I created db2.
> 
> And then tried the following and got the subsequent errors.
> 
> # mysqldump --add-drop-table db1 | mysql db2 
> 
> ERROR 1064 at line 399: You have an error in your SQL syntax near
> 'count(count),
> 
>  KEY dataID(dataID)
> 
> ) TYPE=MyISAM' at line 15

Is MySQL server running in the ansi mode?
If so, 'count' is treated as a reserved word. Use -Q option of mysqldump.
> 
> 
> # mysqldump --opt db1  | mysql db2 
> 
> ERROR 1065 at line 23: Query was empty
> 

Check line 23 of the dump file.


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to