E pymysql.err.OperationalError: (1136, "Column count doesn't match value count at row 1")
时间: 2023-10-17 22:32:27 浏览: 197
MySql 错误Incorrect string value for column
这个错误是由于列数与值的数量不匹配导致的。要解决这个问题,您需要确保指定的列数与实际插入的值的数量相同。如果您使用的是INSERT INTO语句,可以通过指定列名来确保正确的列数。例如,INSERT INTO table_name (column1, column2, column3) VALUES (value1, value2, value3); 另外,如果出现这个问题,不是因为'/xxx.frm'文件丢失,而是文件的权限被更改为root。解决方法是使用chown命令将文件的权限更改为mysql用户。您可以在xxx.frm文件所在的目录下执行以下命令:chown mysql.mysql * <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [mysql > 1136 - Column count doesn't match value count at row 1 这个问题怎么解决](https://blog.csdn.net/weixin_35757531/article/details/129606886)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [解决mysql ERROR 1017:Can’t find file: ‘/xxx.frm’ 错误](https://download.csdn.net/download/weixin_38641339/13693619)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文