变更表上的mySQL超时

时间:2018-08-06 19:19:12

标签: mysql

我正在使用mySQL工作台。我有一个很小的表(3800行),并且正在运行以下查询:

alter table tournaments MODIFY COLUMN director_address CHAR(250);

20秒后出现以下错误:

  

错误代码:2013。查询期间与MySQL服务器的连接断开。

我尝试更改一些设置,但没有设置为20秒,所以我不明白为什么20秒后它会断开连接。

我已进入“编辑”->“首选项”,并将所有超时设置为600。当我查看会话超时时,没有什么比这短。

任何人都可以帮忙吗?

每个请求,这是SHOW CREATE TABLE锦标赛的输出;

创建表tournaments(    id mediumint(9)NOT NULL AUTO_INCREMENT,    tournament_master_id mediumint(9)NOT NULL,    name char(75)NOT NULL,    start_dt日期不为空,    days_in_tournament tinyint(4)NOT NULL,    season_id mediumint(9)NOT NULL,    playing_site char(100)默认为空,    playing_address char(100)默认为空,    city char(50)NOT NULL,    state char(2)NOT NULL,    zip char(10)默认为空,    director char(50)NOT NULL,    phone_number char(15)默认为空,    email_address char(80)默认为空,    director_address char(200)默认为空,    co_director1 char(50)默认为空,    co_director2 char(50)默认为空,    charity_name char(50)默认为空,    charity_donation mediumint(9)默认为NULL,    other_event1 char(200)默认为空,    other_event2 char(200)默认为空,    other_event3 char(200)默认为空,    other_event4 char(200)默认为空,    other_info char(200)默认为空,    need_banner tinyint(4)缺省为NULL,    scorecard1_games mediumint(9)默认为NULL,    scorecard1_quantity mediumint(9)默认为NULL,    scorecard2_games mediumint(9)默认为NULL,    scorecard2_quantity mediumint(9)默认为NULL,    guideline_agreement tinyint(4)缺省为NULL,    is_sanctioned tinyint(4)缺省为NULL,    flyer_name char(200)默认为空,    is_flyer_approved tinyint(4)缺省为NULL,    created_at日期时间DEFAULT CURRENT_TIMESTAMP,    updated_at datetime默认为NULL,更新时间为CURRENT_TIMESTAMP,    reported_on日期默认为空,    is_posted tinyint(4)默认为'0',    is_complete tinyint(4)默认为'0',    主键(id)  )ENGINE = InnoDB AUTO_INCREMENT = 7337 DEFAULT CHARSET = latin1

此外,如果有问题(?),我正在本地计算机上运行工作台,并连接到数据库所在的Network Solutions服务器。其他查询执行得很好。

0 个答案:

没有答案