Mario Ohnewald <[EMAIL PROTECTED]> wrote:
> I want to import a MySQL 3.x Databse to my new shiny MySQL4.x.
> I did a backup with
> /usr/local/mysql-standard-4.0.14-pc-linux-i686/bin/mysqldump -u root -p --opt -A > 
> mysql_lamp_backup.`date '+%Y.%m.%d'`.sql
> 
> And i tried to import it to MySQL4.x with:
> /usr/local/mysql/bin/mysql -u root -p < mysqlbak
> 
> The error:
> ERROR 1064 at line 598: 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 '-en' at line 1
> 
> This is teh line 598:
> CREATE DATABASE /*!32312 IF NOT EXISTS*/ blabla-en;
> 
> IF i change the name to blabla_en, it works fine.

Use -Q option of the mysqldump.

> 
> #### Another issue:
> 
> ERROR 1064 at line 830: 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 '!
> ,'poll','Questions','','',10,'r',11.61,11,10,0010000000010000,'','A'),
> 
> ANd this 830 line ist just far to long to post it :)
> 
> 
> So do i have a general problem or what did i do wrong so far?


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