Bug #20275 | MySQL server crashes when access from phpmyadmin is done | ||
---|---|---|---|
Submitted: | 5 Jun 2006 21:20 | Modified: | 8 Jul 2006 13:16 |
Reporter: | Pavol Luptak | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.22-log | OS: | Linux (Gentoo Linux) |
Assigned to: | CPU Architecture: | Any |
[5 Jun 2006 21:20]
Pavol Luptak
[20 Jun 2006 15:02]
Valeriy Kravchuk
Thank you for a problem report. Please, answer my last question in related bug #20132. Is it possible that these problematic tables were simply copied from your master, version 4.x.y, (not dumped and restored)?
[22 Jun 2006 15:25]
Pavol Luptak
Yes, they were simply copied according to http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html (snapshot with TABLES WITH READ LOCK;) Till now I have not used mysql dump / restore because it is time consuming.
[23 Jun 2006 9:00]
Valeriy Kravchuk
On the other hand, manual clearly states (http://dev.mysql.com/doc/refman/5.0/en/upgrading-from-4-1.html): "MySQL generally recommends that you dump and reload your tables from any previous version to upgrade to 5.0."... Anyway, please, send the SHOW CREATE TABLE results for the "problematic" tables.
[23 Jun 2006 15:57]
Pavol Luptak
Hi Valeryi, I have tried to transfer InnoDB tables using dump + restore (between MySQL 4.1 and 5.0.22) and it seems to work perfectly! The main problem of MySQL dump comparing to binary snapshot is the fact that it is much more time-consuming (I can not afford to set read-lock for all tables of 5 GB production database - it takes approximately 30 minutes). Now I transfer all MYISAM tables using binarny snapshot and all InnoDB tables using SQL dump/restore. I hope the binary structure of MYISAM is the same for MySQL 4.1 and MySQL 5.0.x, or not? Thanks a lot for your help. Pavol Here are SHOW CREATE TABLE results for my InnoDB tables: | tblOrgEvent | CREATE TABLE `tblOrgEvent` ( `org_event_id` int(11) NOT NULL auto_increment, `org_event_from` datetime NOT NULL default '0000-00-00 00:00:00', `org_event_to` datetime NOT NULL default '0000-00-00 00:00:00', `org_event_title` varchar(100) collate utf8_slovak_ci NOT NULL default '', `org_event_body` mediumtext collate utf8_slovak_ci NOT NULL, `org_event_security` enum('all','owner') collate utf8_slovak_ci NOT NULL default 'all', `org_event_type` enum('event','note') collate utf8_slovak_ci NOT NULL default 'event', `org_event_repeat_period` int(11) NOT NULL default '0', `org_event_repeat_count` int(11) NOT NULL default '0', `org_event_up_id` int(11) default NULL, PRIMARY KEY (`org_event_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovak_ci | | tblOrgEventMember | CREATE TABLE `tblOrgEventMember` ( `org_event_id` int(11) NOT NULL default '0', `member_id` int(11) NOT NULL default '0', `member_type` enum('admin','contact') collate utf8_slovak_ci NOT NULL default 'admin', `org_event_owner` enum('no','in_list','hidden') collate utf8_slovak_ci NOT NULL default 'no', KEY `org_event_id` (`org_event_id`,`member_id`,`member_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovak_ci | | tblOrgContact | CREATE TABLE `tblOrgContact` ( `org_contact_id` int(11) NOT NULL auto_increment, `org_contact_email` varchar(60) collate utf8_slovak_ci NOT NULL default '', `org_contact_name` varchar(100) collate utf8_slovak_ci NOT NULL default '', `org_contact_address` text collate utf8_slovak_ci NOT NULL, `org_contact_desc` text collate utf8_slovak_ci NOT NULL, PRIMARY KEY (`org_contact_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_slovak_ci |
[8 Jul 2006 13:16]
Valeriy Kravchuk
If your MyISAM tables has varchar, decimal or text columns, you definitely have to use dump and restore for them. I am closing this report as a result of improper upgrade.