MySQL Forums
Forum List  »  InnoDB

Re: mysql online ddl still lock
Posted by: hua kai
Date: August 30, 2016 09:33PM

table can not use online ddl:
CREATE TABLE `aa_usersns` (
`user_id` VARCHAR(36) NOT NULL,
`type` TINYINT(4) NOT NULL,
`sns_id` VARCHAR(128) DEFAULT NULL,
`sns_id2` VARCHAR(64) DEFAULT NULL,
`email` VARCHAR(256) NOT NULL,
`password` VARCHAR(64) DEFAULT NULL,
`email_verified` TINYINT(4) DEFAULT NULL,
`online_status` TINYINT(4) DEFAULT NULL,
`account_id` VARCHAR(36) NOT NULL,
`contact_hash` VARCHAR(64) DEFAULT NULL,
`client_login` TINYINT(4) NOT NULL,
`client_version` VARCHAR(50) DEFAULT NULL,
`client_uuid` VARCHAR(64) DEFAULT NULL,
`last_login_time` DATETIME DEFAULT NULL,
`login_times` INT(11) DEFAULT '0',
`domain` VARCHAR(64) DEFAULT NULL,
`create_time` DATETIME NOT NULL,
`modify_time` DATETIME NOT NULL,
PRIMARY KEY (`user_id`,`type`),
KEY `last_login_time` (`last_login_time`),
KEY `email` (`email`(255)),
KEY `account_id` (`account_id`),
KEY `domain` (`domain`),
KEY `client_version` (`client_version`),
KEY `create_time` (`create_time`)
) ENGINE=INNODB DEFAULT CHARSET=utf8


table could:
CREATE TABLE `aa_polling` (
`polling_id` varchar(36) NOT NULL DEFAULT '',
`name` varchar(64) NOT NULL DEFAULT '' COMMENT 'Polling name',
`meeting_number` bigint(10) NOT NULL DEFAULT '0',
`creator_id` varchar(36) NOT NULL DEFAULT '',
`status` tinyint(3) NOT NULL DEFAULT '0',
`start_time` datetime DEFAULT NULL,
`end_time` datetime DEFAULT NULL,
`totalparticipant` smallint(6) DEFAULT '0',
`create_time` datetime DEFAULT NULL,
`modify_time` datetime DEFAULT NULL,
PRIMARY KEY (`polling_id`),
KEY `meeting_number` (`meeting_number`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

Options: ReplyQuote


Subject
Views
Written By
Posted
3333
February 19, 2016 02:35AM
1752
February 19, 2016 03:09AM
1706
February 19, 2016 06:53AM
1639
February 20, 2016 01:38AM
1390
August 24, 2016 03:48AM
1364
August 25, 2016 07:40PM
Re: mysql online ddl still lock
1474
August 30, 2016 09:33PM
1401
September 01, 2016 04:55PM
1348
September 01, 2016 11:40PM
1320
September 03, 2016 05:05PM
1406
September 05, 2016 01:20AM
1705
September 05, 2016 03:54PM
1258
September 08, 2016 04:04AM
1274
September 10, 2016 12:19AM
1581
February 23, 2016 11:29PM
2229
February 29, 2016 11:32PM
1847
March 05, 2016 12:19AM
1756
March 07, 2016 03:34AM
1647
March 31, 2016 02:32AM
1687
April 02, 2016 12:39AM
1758
May 13, 2016 02:44AM
1846
May 24, 2016 09:53AM


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.