简体   繁体   English

MySQL 更改 auto_increment 后无法显示表格

[英]MySQL can't show table after altering auto_increment

I created two tables like this我创建了两个这样的表在此处输入图像描述

and I want to change the added data's id so I use我想更改添加数据的 ID,所以我使用

alter table member auto_increment=5;

after this, it couldn't show my member table.在此之后,它无法显示我的会员表。 It shows表明

error 2013: lost connection to MySQL server during query.

I thought my table is too big to run, so I changed the limit and the DBMS time out, but it didn't work either.我以为我的表太大跑不起来,所以我改变了限制,DBMS超时了,但也没用。 Can someone tell me what's the problem now?有人可以告诉我现在有什么问题吗?

I found the problem.我发现了问题。 Don't edit your MySQL database when you're connecting it with your Python Flask program.当您将 MySQL 数据库与您的 Python Flask 程序连接时,请勿编辑该数据库。 Edit means any CRUD actions.编辑意味着任何 CRUD 操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM