如何在基本SQL,MySQL特定或PHP中找到我具有最低读取权限的数据库?
MySQL中有一个命令可以显示您拥有的所有权限.命令是:
SHOW GRANTS;
它会给你类似的输出:
root@(none)~> show grants; +---------------------------------------------------------------------+ | Grants for root@localhost | +---------------------------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION | +---------------------------------------------------------------------+ 1 row in set (0.00 sec)
这在本手册中有记录.