gpt4 book ai didi

mysql - 如何防止mysql用户显示所有数据库

转载 作者:行者123 更新时间:2023-11-29 03:11:38 35 4
gpt4 key购买 nike

0.82sp1 正在运行,我注意到每个用户都可以通过调用 show databases; 命令查看所有数据库。即使我撤销给定用户的所有权限。是否有一些设置允许默认显示数据库?我怎样才能阻止它。

最佳答案

免责声明:从 ajreal 评论中窃取

From dev.mysql :

If the server was started with the --skip-show-database option, you cannot use this statement (SHOW DATABASES) at all unless you have the SHOW DATABASES privilege.

关于mysql - 如何防止mysql用户显示所有数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7307782/

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