gpt4 book ai didi

mysql - MaxScale:无法检索数据库名称

转载 作者:行者123 更新时间:2023-11-29 19:32:28 25 4
gpt4 key购买 nike

当我启动 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.

我启用了调试,但仍然看不到“早期”消息是什么!我可以使用配置的帐户连接到服务器,并且运行显示数据库没有任何问题。

数据库位于 RDS 中。

有什么想法吗?

谢谢

最佳答案

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);

因此,如果没有专门授予该权限,查询将不会返回任何内容。

关于mysql - MaxScale:无法检索数据库名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41706647/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com