Bug #4812 Index creation on UTF8 columns corrupts table.
| Submitted: | 29 Jul 2004 19:37 | Modified: | 30 Jul 2004 0:27 |
|---|---|---|---|
| Reporter: | Shaji Sebastian | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Server: MyISAM storage engine | Severity: | S2 (Serious) |
| Version: | 4.1.3-beta, 4.1.2-alpha | OS: | Linux (Linux 2.4.9) |
| Assigned to: | Matthew Lord | CPU Architecture: | Any |
[29 Jul 2004 19:37]
Shaji Sebastian
[29 Jul 2004 19:40]
Shaji Sebastian
I should add that we only use MyIsam tables.
[30 Jul 2004 0:27]
Matthew Lord
I was unable to repeat this on 4.1.3-beta-pc-linux or 4.1.3-beta-pc-linux-icc.
Thi is how I tried to repeat it:
CREATE TABLE `mytable` (
`m` tinyint(4) NOT NULL default '0',
`id` bigint(20) NOT NULL default '0',
`ctext` varchar(255) default NULL,
PRIMARY KEY (`m`,`id`),
KEY `m` (`m`,`ctext`(64))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 MAX_ROWS=100000000
alter table mytable disable keys;
load data infile '/tmp/bug4812.sql' into table mytable fields terminated by "," optionally enclosed
by "'" (m, id, ctext);
alter table mytable enable keys;
I used a simple perl program to create the sql file:
#!/usr/bin/perl
for( $x=1; $x < 10000000; $x++){
print "$x, " . ($x + 1) . ", 'blah-$x'\n";
}
exit;
Have you been able to repeat this problem on other machines? Can you run some
diagnostic tests on your disk(s)?
Best Regards,
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
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.