显然,我的MySQL表已损坏

时间:2023-01-15 08:31:24

I use 000Webhost.

我用的是000Webhost。

I've just created a table in my MySQL database.

我刚在MySQL数据库中创建了一个表。

I've got this error:

我有这个错误:

"Column count of mysql.proc is wrong. Expected 20, found 16. The table is probably corrupted".

“mysql.proc的列数是错误的。预计20,发现16.表可能已损坏”。

My other tables work fine.

我的其他表工作正常。

Why does just this table not work?

为什么这张桌子不起作用?

Connor

2 个解决方案

#1


8  

Sometimes it happens due the import/export of DBs with different versions. I found this on google, try with this command mysql_upgrade --force -uroot -p

有时它是由于导入/导出具有不同版本的DB而发生的。我在谷歌上找到了这个,试试这个命令mysql_upgrade --force -uroot -p

Source: http://www.tillett.info/2012/02/17/mysql-problem-column-count-of-mysql-proc-is-wrong-expected-20-found-16-the-table-is-probably-corrupted/

If this doesn't work, try a different way to make a import/export.

如果这不起作用,请尝试以不同的方式进行导入/导出。

#2


1  

The error message "Column count of mysql.proc is wrong" happens if you have old pre 5.1 MySQL system tables loaded on 5.1 server. It is a configuration issue in MySQL.

如果您在5.1服务器上加载了旧的5.1 MySQL系统表,则会出现错误消息“mysql.proc的列计数错误”。这是MySQL中的配置问题。

You can fix the error on MySQL 5.1 server by running mysql_upgrade-command.

您可以通过运行mysql_upgrade-command来修复MySQL 5.1服务器上的错误。

I'm not sure what permissions you have on the MySQL database if you are using a hosting provider.

如果您使用托管服务提供商,我不确定您对MySQL数据库有什么权限。

#1


8  

Sometimes it happens due the import/export of DBs with different versions. I found this on google, try with this command mysql_upgrade --force -uroot -p

有时它是由于导入/导出具有不同版本的DB而发生的。我在谷歌上找到了这个,试试这个命令mysql_upgrade --force -uroot -p

Source: http://www.tillett.info/2012/02/17/mysql-problem-column-count-of-mysql-proc-is-wrong-expected-20-found-16-the-table-is-probably-corrupted/

If this doesn't work, try a different way to make a import/export.

如果这不起作用,请尝试以不同的方式进行导入/导出。

#2


1  

The error message "Column count of mysql.proc is wrong" happens if you have old pre 5.1 MySQL system tables loaded on 5.1 server. It is a configuration issue in MySQL.

如果您在5.1服务器上加载了旧的5.1 MySQL系统表,则会出现错误消息“mysql.proc的列计数错误”。这是MySQL中的配置问题。

You can fix the error on MySQL 5.1 server by running mysql_upgrade-command.

您可以通过运行mysql_upgrade-command来修复MySQL 5.1服务器上的错误。

I'm not sure what permissions you have on the MySQL database if you are using a hosting provider.

如果您使用托管服务提供商,我不确定您对MySQL数据库有什么权限。