K A
a_kira1****@hotma*****
2013年 8月 23日 (金) 17:45:41 JST
木村です。
別のトピックでもお世話になっています。
別トピック(「WHERE 〜 IN 多数」クエリが通らなくなる件)の問題が八方塞がりになりつつあるので、試みに
yum --enablerepo=wing update
としてみた際に以下のエラーが表示されました。
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
run the following command to unregister mroonga:
/usr/bin/mysql -u root -e "
DROP FUNCTION mroonga_snippet;
DROP FUNCTION last_insert_grn_id;
DROP FUNCTION mroonga_command;
UNINSTALL PLUGIN mroonga;
FLUSH TABLES;
"
/usr/bin/mysql -u root -e " DELETE IGNORE FROM mysql.plugin WHERE name = 'mroonga'; INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so'; CREATE FUNCTION last_insert_grn_id RETURNS INTEGER SONAME 'ha_mroonga.so'; CREATE FUNCTION mroonga_snippet RETURNS STRING SONAME 'ha_mroonga.so'; CREATE FUNCTION mroonga_command RETURNS STRING SONAME 'ha_mroonga.so'; "
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
run the following command to register mroonga:
/usr/bin/mysql -u root -e "
DELETE IGNORE FROM mysql.plugin WHERE name = 'mroonga';
INSTALL PLUGIN mroonga SONAME 'ha_mroonga.so';
CREATE FUNCTION last_insert_grn_id RETURNS INTEGER SONAME 'ha_mroonga.so';
CREATE FUNCTION mroonga_snippet RETURNS STRING SONAME 'ha_mroonga.so';
CREATE FUNCTION mroonga_command RETURNS STRING SONAME 'ha_mroonga.so';
update中に実行されるはずだったmroongaのunregister→register処理が権限の問題で実行できなかった、ということのようですが、このエラーが発生した場合はメッセージ通りに手動でのunregister→register処理が必要でしょうか?
また、このエラーを発生させずにyum updateを実行する方法はあるでしょうか?
一見したところ、エラーは表示されたもののMySQLとmroongaの挙動に特に問題は出ていないように見えます(別トピックの件以外)。
どなたかご回答よろしくお願いします。