Tíquete #14367

show senna statusが結果を返さない
: 2008-12-24 14:55 Última Atualização: 2008-12-24 15:43

Relator:
(del#37263)
Dono:
Estado:
Aberto [Owner assigned]
Componente:
(Nenhum)
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Accepted
Arquivo:
Nenhum

Details

tritonn-1.0.12-mysql-5.0.67-linux-i686.tar.gzをec2のインスタンス(ami-5647a33fを利用)の/usr/local以下にインストールして実施しました。
- rootユーザーであればインタラクティブモード、-eでの実行ともに結果が帰ってくる
- 一般ユーザーではインタラクティブモードでは結果が帰ってくる
- 一般ユーザーで-eで実行すると結果が帰ってこない
- perl-DBI経由でも同様に一般ユーザーでは結果が帰ってこない(rootユーザーでは結果が帰ってくる)

以下ログです。

$ /usr/local/mysql/bin/mysql -S /var/lib/mysql/mysql.sock -uroot test
mysql> show senna status;
Empty set (0.00 sec)

mysql> create table test(body text, fulltext using ngram (`body`));
Query OK, 0 rows affected (0.01 sec)

mysql> show create table test\G
*************************** 1. row ***************************
Table: test
Create Table: CREATE TABLE `test` (
`body` text,
FULLTEXT KEY `body` USING NGRAM, NORMALIZE, 512 (`body`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
1 row in set (0.00 sec)

mysql> show senna status\G
*************************** 1. row ***************************
Table: test
Key_name: body
Column_name: body
Encoding: latin1
Index_type: NGRAM
Sectionalize: OFF
Normalize: ON
Split_alpha: OFF
Split_digit: OFF
Split_symbol: OFF
Initial_n_segments: 512
Senna_keys_size: 0
Senna_keys_file_size: 4268032
Senna_lexicon_size: 0
Senna_lexicon_file_size: 4268032
Senna_inv_seg_size: 167936
Senna_inv_chunk_size: 135168
1 row in set (0.00 sec)

mysql> grant all on test.* to danjou@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> exit;
Bye
$ mysql test
mysql> show senna status\G
*************************** 1. row ***************************
Table: test
Key_name: body
Column_name: body
Encoding: latin1
Index_type: NGRAM
Sectionalize: OFF
Normalize: ON
Split_alpha: OFF
Split_digit: OFF
Split_symbol: OFF
Initial_n_segments: 512
Senna_keys_size: 0
Senna_keys_file_size: 4268032
Senna_lexicon_size: 0
Senna_lexicon_file_size: 4268032
Senna_inv_seg_size: 167936
Senna_inv_chunk_size: 135168
1 row in set (0.00 sec)
mysql> exit
Bye
$ /usr/local/mysql/bin/mysql -S /var/lib/mysql/mysql.sock test -udanjou -e 'show senna status\G'
$ /usr/local/mysql/bin/mysql -S /var/lib/mysql/mysql.sock test -uroot -e 'show senna status\G'
*************************** 1. row ***************************
Table: test
Key_name: body
Column_name: body
Encoding: latin1
Index_type: NGRAM
Sectionalize: OFF
Normalize: ON
Split_alpha: OFF
Split_digit: OFF
Split_symbol: OFF
Initial_n_segments: 512
Senna_keys_size: 0
Senna_keys_file_size: 4268032
Senna_lexicon_size: 0
Senna_lexicon_file_size: 4268032
Senna_inv_seg_size: 167936
Senna_inv_chunk_size: 135168
$

Ticket History (2/2 Histories)

2008-12-24 15:43 Updated by: mir
  • Resolução Update from Nenhum to Accepted
Comentário
バグレポートありがとうございます。確認してみます。
2009-01-05 19:30 Updated by: myuka
Comentário
再現性を確認しました。条件は以下の通りになります。

再現条件
* -e無しの場合、結果が返ってくる。
* -e有りの場合、grobal all on *.* + grant権限のみ結果が返ってくるが、それ以外では結果が返らない

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login