【发布时间】: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