且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-12-01 10:54:04

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

DISCLAIMER: Stolen from ajreal comment

来自dev.mysql :

如果服务器使用--skip-show-database选项启动,则您 除非您拥有SHOW DATABASES,否则根本不能使用此语句(SHOW DATABASES) 特权.

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.