2017-01-17 1 views
0

の取得に失敗しました:MaxScaleの:私はMaxScaleのを起動すると、私は次のエラーを取得するデータベース名

... 
2017-01-17 20:26:05 debug : qc_sqlite: Token 34 not handled explicitly. 
2017-01-17 20:26:05 debug : qc_sqlite: Token 103 not handled explicitly. 
2017-01-17 20:26:05 debug : qc_sqlite: Token 216 not handled explicitly. 
2017-01-17 20:26:05 notice : Loaded module maxscaled: V2.0.0 from /usr/lib64/maxscale/libmaxscaled.so 
2017-01-17 20:26:05 notice : Listening connections at /tmp/maxadmin.sock with protocol MaxScale Admin 
2017-01-17 20:26:05 debug : 140414757828672 [poll_add_dcb] Added dcb 0x1ad27f0 in state DCB_STATE_LISTENING to poll set. 
2017-01-17 20:26:05 notice : Using encrypted passwords. Encryption key: '/var/lib/maxscale/.secrets'. 
2017-01-17 20:26:05 error : Failed to retrieve database names: 
2017-01-17 20:26:05 error : Shard Router: Unable to load database grant information, MaxScale authentication will proceed without including database permissions. See earlier error messages for user '*******' for more information. 
2017-01-17 20:26:05 error : Failed to retrieve database names: 
2017-01-17 20:26:05 error : Shard Router: Unable to load database grant information, MaxScale authentication will proceed without including database permissions. See earlier error messages for user '*******' for more information. 

私はデバッグを有効にし、まだ「以前」のメッセージが何であるかを見ることができません! 設定されたアカウントを使用してサーバーに接続でき、問題なくshowデータベースを実行します。

データベースはRDSにあります。

おかげ

答えて

0

MaxScaleのは「ショーデータベース」を実行することができたということは問題ではありませんでした、それが実行されるよう、それはショーのデータベースを明示的に助成金を必要とします:

SELECT * 
FROM ( 
    ( 
      SELECT Count(1) AS ndbs 
      FROM information_schema.schemata) AS tbl1, 
    ( 
      SELECT grantee, 
       privilege_type 
      FROM information_schema.user_privileges 
      WHERE privilege_type='SHOW DATABASES' 
      AND REPLACE(grantee, '\'','')=CURRENT_USER()) AS tbl2); 

をので、特に許可なしそのprivは、クエリは何も返しません。

0

MaxScaleユーザーの許可要件は、MaxScale Tutorialに記載されています。 [email protected]%ユーザーのための

必要な助成金は、次のとおりです。

GRANT SELECT ON mysql.user TO 'maxuser'@'%'; 
GRANT SELECT ON mysql.db TO 'maxuser'@'%'; 
GRANT SELECT ON mysql.tables_priv TO 'maxuser'@'%'; 
GRANT SHOW DATABASES ON *.* TO 'maxuser'@'%'; 
GRANT REPLICATION CLIENT ON *.* TO 'maxuser'@'%'; 
関連する問題