【问题标题】:google cloud sql instance mysql.proc corrupted.谷歌云 sql 实例 mysql.proc 已损坏。
【发布时间】:2014-11-13 00:48:42
【问题描述】:

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

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

mysqlcheck 报告所有表都正常。

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-cloud-sql


【解决方案1】:

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

不知道为什么。我所做的只是创建另一个测试数据库实例,看看我是否可以复制问题——我不能——它工作得很好。我在之前失败的数据库中再次尝试,现在它也可以工作了。

【讨论】:

    猜你喜欢
    • 2014-02-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-26
    • 2019-05-15
    • 2015-05-02
    • 1970-01-01
    相关资源
    最近更新 更多