Link to home
Start Free TrialLog in
Avatar of Oxfam_Australia
Oxfam_Australia

asked on

problems restoring a version 3.23.49 MYSQLDUMP to version 5.0.45 MySQL server

Hello Experts,

I need to move a MySQL database that is currently residing on a Linux server onto Windows server. The Linux server is running MySQL server version 3.23.49 and the OS is a flavour of Red Hat. The Windows server is Windows 2003 and is running version 5.0.45 of MySQL.

On the linux box I ran the following command :-

mysqldump -a -A -u root --password=manti156 www_website_apps_dev > apps_dev.sql

On the Windows box I ran the following command :-

mysql -u root --password=****** www_website_apps_dev < apps_dev.sql

which is giving the following error....

C:\Program Files\MySQL\MySQL Server 5.0\bin>mysql -u root --password=****
www_website_apps_dev < apps_dev.sql
ERROR 1064 (42000) at line 9201: You have an error in your SQL syntax; check the
 manual that corresponds to your MySQL server version for the right syntax to us
e near '-is_active-publication_date-start_date (id,is_active)
) TYPE=MyISAM' at line 23

Can anyone help ?




problems restoring a  version 3.23.49 MYSQLDUMP from to version 5.0.45 MySQL server
Avatar of Kim Ryan
Kim Ryan
Flag of Australia image

Can you show the SQL statements at line 9201. There is probably something there that shows why the SQL syntax is not compatible. When upgrading from 3.23 the reference manuals suggest going to 4.0 first and then to 5.0. But you may be able to alter the SQL dump statements directly to solve the problem
Avatar of Oxfam_Australia
Oxfam_Australia

ASKER

These are the lines that make up the create :-

CREATE TABLE mm_article (

  id int(11) NOT NULL auto_increment,

  title varchar(255) NOT NULL default '',

  byline varchar(255) NOT NULL default '',

  description text NOT NULL,

  content text NOT NULL,

  author_id int(11) NOT NULL default '0',

  publication_date int(11) NOT NULL default '0',

  creation_date timestamp(14) NOT NULL,

  start_date int(11) NOT NULL default '0',

  end_date datetime default '0000-00-00 00:00:00',

  external_url varchar(100) NOT NULL default '',

  external_link_in_title tinyint(1) NOT NULL default '0',

  is_active tinyint(1) NOT NULL default '0',

  edit_admin_id int(11) NOT NULL default '0',

  edit_date int(11) NOT NULL default '0',

  publication_date3 date default '0000-00-00',

  start_date3 datetime default '0000-00-00 00:00:00',

  last_edited_by tinytext NOT NULL,

  edit_ipaddress int(11) NOT NULL default '0',

  PRIMARY KEY  (id),

  FULLTEXT KEY full_text (title,description,byline,content),

  KEY id-is_active-publication_date-start_date (id,is_active)

) TYPE=MyISAM;


The offending line is :-

KEY id-is_active-publication_date-start_date (id,is_active)

Do you think I could simple remove this line ?

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of Kim Ryan
Kim Ryan
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial