|
|||||||||||
|
Re: Problem when upgrading to MySql 5
From: Todd Farmer <todd(at)mysql.com>
Date: Wed Aug 22 2007 - 18:58:07 EDT
Looks like the original dump was created with SQL_MODE (http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html) set to ANSI_QUOTES, and the current install is not. The ANSI_QUOTES mode allows you to use double-quote as an identifier quote character (in addition to the backtick character). Here's an example that shows how setting ANSI_QUOTES allows the CREATE TABLE command, while otherwise it generates the error that you observed:
mysql> set @@sql_mode = 'ANSI_QUOTES';
mysql> create table "test" (id int);
mysql> set @@sql_mode =
mysql> drop table test;
mysql> create table "test" (id int);
You could put the following line at the top of your backup file and give it another try: set @@sql_mode = 'ANSI_QUOTES'; Best regards, -- Todd Farmer, Support Engineer, Americas MySQL Inc., www.mysql.com Discover new MySQL Monitoring & Advisory features at: http://www.mysql.com/products/enterprise/whats_new.html -- MySQL Windows Mailing List For list archives: http://lists.mysql.com/win32 To unsubscribe: http://lists.mysql.com/win32?unsub=lists@pantek.comReceived on Wed Aug 22 18:58:27 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:15:23 EDT |
||||||||||
|
|||||||||||