Bug #3968 | Data Import - ALTER TABLE xxxx ENABLE KEYS | ||
---|---|---|---|
Submitted: | 2 Jun 2004 16:07 | Modified: | 27 Aug 2004 14:03 |
Reporter: | Dave Wales | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 4.0.xx | OS: | Linux (MandrakeLinux) |
Assigned to: | Matthew Lord | CPU Architecture: | Any |
[2 Jun 2004 16:07]
Dave Wales
[2 Jun 2004 17:02]
Dave Wales
4.0.16 works fine with the same data dump if that helps.
[2 Jun 2004 23:51]
Matthew Lord
Hi, Can you provide me with the mysql>show create table postcode_details;? I can try and come up with some dummy data to try and repeat the problem.
[3 Jun 2004 11:27]
Dave Wales
Here is the table def Matthew.... CREATE DATABASE postcodes; USE postcodes; -- MySQL dump 8.22 -- -- Host: localhost Database: postcodes --------------------------------------------------------- -- Server version 3.23.51 -- -- Table structure for table 'postcode_details' -- CREATE TABLE postcode_details ( postcode_details_id int(10) unsigned NOT NULL auto_increment, postcode_id int(10) unsigned NOT NULL default '0', department_of_company varchar(255) default NULL, company_name varchar(255) default NULL, sub_building varchar(255) default NULL, building_name varchar(255) default NULL, po_box_num varchar(255) default NULL, building_number int(10) default NULL, dependent_street varchar(255) default NULL, main_street varchar(255) default NULL, double_dependent_locality varchar(255) default NULL, dependant_locality varchar(255) default NULL, post_town varchar(255) default NULL, administrative_county varchar(255) default NULL, former_postal_county varchar(255) default NULL, traditional_county varchar(255) default NULL, sort_code varchar(255) default NULL, user_category varchar(255) NOT NULL default '', number_of_delivery_points int(5) default NULL, delivery_point_suffix varchar(255) default NULL, PRIMARY KEY (postcode_details_id), KEY postcode_id (postcode_id), KEY user_category (user_category) ) TYPE=MyISAM; CREATE TABLE postcodes ( postcode_id int(10) unsigned NOT NULL auto_increment, postcode varchar(8) NOT NULL default '', city varchar(30) NOT NULL default '', street varchar(100) NOT NULL default '', county varchar(50) NOT NULL default '', source varchar(20) NOT NULL default '', timestamp timestamp(14) NOT NULL, db_src varchar(15) default NULL, PRIMARY KEY (postcode_id), UNIQUE KEY postcode (postcode), KEY county (county), KEY street (street,city), KEY source (source) ) TYPE=MyISAM;
[4 Jun 2004 2:45]
Matthew Lord
I haven't been able to repeat it with approx. 4 million rows of dummy data. Do you have any non- sensitive test data that I could use to try and reproduce the problem?
[4 Jun 2004 11:46]
Dave Wales
I have re-built one server as a FreeBSD box and installed mysql version 4.0.20, this OS didn't have a problem importing the same file to Mysql so it looks like something could be causing a problem on the Mandrake/Mysql combination... Mandrake version which fails:- Mandrake Linux release 9.2 Not causing me a problem anymore as I would rather run on FreeBSD than Mandrake anyway but thanks for your help.