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
1707
February 19, 2016 02:35AM
1070
February 19, 2016 03:09AM
1007
February 19, 2016 06:53AM
1024
February 20, 2016 01:38AM
763
August 24, 2016 03:48AM
623
August 25, 2016 07:40PM
Re: mysql online ddl still lock
689
August 30, 2016 09:33PM
725
September 01, 2016 04:55PM
663
September 01, 2016 11:40PM
676
September 03, 2016 05:05PM
706
September 05, 2016 01:20AM
630
September 05, 2016 03:54PM
580
September 08, 2016 04:04AM
649
September 10, 2016 12:19AM
936
February 23, 2016 11:29PM
1077
February 29, 2016 11:32PM
1153
March 05, 2016 12:19AM
1011
March 07, 2016 03:34AM
1029
March 31, 2016 02:32AM
925
April 02, 2016 12:39AM
733
May 13, 2016 02:44AM
673
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.