Re: import a dump
Hi,
You may be trying to load a dump from a 4.1.8 server (listed in the dump output) into an older server version and some of the mysql comments cause a syntax error.
Check this and make sure its version 4.1 also
mysql --version
if it is then mysql < dump.sql should work.
if not, then check the mysqldump options...mysqldump now has a nice feature that will make the dump compatible with older servers..
--compatible=name Change the dump to be compatible with a given mode. By
default tables are dumped in a format optimized for
MySQL. Legal modes are: ansi, mysql323, mysql40,
postgresql, oracle, mssql, db2, maxdb, no_key_options,
no_table_options, no_field_options. One can use several
modes separated by commas. Note: Requires MySQL server
version 4.1.0 or higher. This option is ignored with
earlier server versions.
Also, you can remove the comments from the dump output using --skip-opt to disable the default --create-options and --set-charset which cause the problems.
Chris
4.1.8-
Subject
Views
Written By
Posted
47179
March 24, 2005 03:35AM
24585
March 24, 2005 05:45AM
17079
March 24, 2005 06:13AM
12106
March 24, 2005 06:27AM
10287
March 24, 2005 07:02AM
13414
March 25, 2005 11:38AM
Re: import a dump
10715
March 25, 2005 03:44PM
5906
March 25, 2005 04:09PM
5432
March 30, 2005 01:39PM
5444
March 30, 2005 02:10PM
5137
April 01, 2005 10:01AM
5290
April 01, 2005 10:50AM
5073
April 01, 2005 02:09PM
6394
April 01, 2005 02:22PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.