こんにちは。MYSQL 5.5.27、Win XP SP3の環境でエラーが発生します。


イベントが行えません。下記のようなエラーメッセージが表示されます。

1577 cannot proceed because system tables used by event scheduler were found damaged at server start

ネットで調べた所、下記のようなコマンドもあったので、試してみましたが、ダメでした。

mysql> mysql_upgrade -u root -p ;
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysql_upgrade -u root -p' at line 1

更に、
mysql> show variables like '%event%';
+---------------------------------------------------+----------+
| Variable_name | Value |
+---------------------------------------------------+----------+
| event_scheduler | DISABLED |

と、表示されます。どのようにしたら解決するでしょうか?
宜しくお願いします。

回答の条件
  • 1人5回まで
  • 登録:
  • 終了:2012/08/19 12:00:03
※ 有料アンケート・ポイント付き質問機能は2023年2月28日に終了しました。

回答1件)

id:oil999 No.1

回答回数1728ベストアンサー獲得回数320

ポイント100pt

DOS窓を開き、MySQLサーバインストールパスの下にある"bin"フォルダへ移動したら、

mysql_upgrade

を実行して下さい。

http://dev.mysql.com/doc/refman/5.1/en/mysql-upgrade.html

id:akaired

うーん、DOS窓からやってみましたが、不成功でした。

2012/08/15 14:59:14
  • id:windofjuly
    うぃんど 2012/08/12 13:20:43
    >event_scheduler | DISABLED

    my.cnf(もしくはmy.ini)でイベントスケジューラーをONにするだけで解決しそうに思います。

    http://dev.mysql.com/doc/refman/5.5/en/events-configuration.html
    >>
    In the server configuration file (my.cnf, or my.ini on Windows systems), include the line where it will be read by the server (for example, in a [mysqld] section):

    event_scheduler=DISABLED

    To enable the Event Scheduler, restart the server without the --event-scheduler=DISABLED command-line option, or after removing or commenting out the line containing event-scheduler=DISABLED in the server configuration file, as appropriate. Alternatively, you can use ON (or 1) or OFF (or 0) in place of the DISABLED value when starting the server.
    <<

    >mysql> mysql_upgrade -u root -p ;
    >1064 - You have an error in your SQL syntax;

    今回の件とは関係ない話ですが、
    mysql_upgrade はmysqlの中で実行するのではなくシェル(=DOS)で実行します。
    http://dev.mysql.com/doc/refman/5.1/ja/mysql-upgrade.html
  • id:akaired
    ご回答ありがとうございます。event_scheduler=という項目がmy.iniには無かった為、event_scheduler=ONと追記してmysqlをリスタートさせましたが、かわりませんでした・・・

この質問への反応(ブックマークコメント)

「あの人に答えてほしい」「この質問はあの人が答えられそう」というときに、回答リクエストを送ってみてましょう。

これ以上回答リクエストを送信することはできません。制限について

回答リクエストを送信したユーザーはいません