谷歌云sql实例mysql.proc损坏。

时间:2014-11-12 14:43:06

标签: google-cloud-sql

由于以下错误,我无法在我的云sql数据库中创建存储过程。

ERROR 1548 (HY000): Cannot load from mysql.proc. The table is probably corrupted

mysqlcheck将所有表报告为OK。

从mysql客户端内部修复表会产生以下内容:

mysql> REPAIR TABLE mysql.proc;

    +------------+--------+----------+-----------------------------------------------------------------------+
    | Table      | Op     | Msg_type | Msg_text                                                              |
    +------------+--------+----------+-----------------------------------------------------------------------+
    | mysql.proc | repair | Error    | Warning: '/sfs/pubzapimages/raptor1/data/mysql/proc.MYD' had -1 links |
    | mysql.proc | repair | status   | OK                                                                    |
    +------------+--------+----------+-----------------------------------------------------------------------+
    2 rows in set (0.02 sec)

    mysql> REPAIR TABLE mysql.proc;
    +------------+--------+----------+----------+
    | Table      | Op     | Msg_type | Msg_text |
    +------------+--------+----------+----------+
    | mysql.proc | repair | status   | OK       |
    +------------+--------+----------+----------+
    1 row in set (0.02 sec)

    mysql> REPAIR TABLE mysql.proc;
    +------------+--------+----------+-----------------------------------------------------------------------+
    | Table      | Op     | Msg_type | Msg_text                                                              |
    +------------+--------+----------+-----------------------------------------------------------------------+
    | mysql.proc | repair | Error    | Warning: '/sfs/pubzapimages/raptor1/data/mysql/proc.MYD' had -1 links |
    | mysql.proc | repair | status   | OK                                                                    |
    +------------+--------+----------+-----------------------------------------------------------------------+
    2 rows in set (0.01 sec)

随着它每隔一段时间反复失败。

研究过这个问题后,共识似乎就是运行mysql_upgrade 注意:此实例未升级,它作为新的5.5安装。 我将mysqlserver下载到gce实例上以获取对mysql_upgrade的访问权限。执行时,我得到以下内容:

Running 'mysql_fix_privilege_tables'...
ERROR 1227 (42000) at line 718: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
ERROR 1227 (42000) at line 726: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
ERROR 1227 (42000) at line 729: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
ERROR 1227 (42000) at line 742: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
ERROR 1290 (HY000) at line 1137: The MySQL server is running with the google option so it cannot execute this statement
FATAL ERROR: Upgrade failed 

似乎mysql_upgrade正在尝试执行Google云端不支持的语句。

非常感谢任何帮助/指示。

1 个答案:

答案 0 :(得分:1)

我刚发布问题后不久就开始工作了。

感到困惑的原因。我所做的只是创建另一个测试数据库实例,看看我是否可以复制问题 - 我做不到 - 它工作得很好。我在以前失败的数据库中再次尝试过,现在它也起作用了。