是的,因为这是全球特权。让我们首先创建一个用户-
mysql> CREATE USER 'Jace'@'localhost' IDENTIFIED BY 'Jace123';
这是使用*。*授予全局特权的查询:
mysql> GRANT SELECT ON *.* TO 'Jace'@'localhost';
现在,您可以显示用户的所有授权-
mysql> show grants for 'Jace'@'localhost';
这将产生以下输出-
+-------------------------------------------+ | Grants for Jace@localhost | +-------------------------------------------+ | GRANT SELECT ON *.* TO `Jace`@`localhost` | +-------------------------------------------+ 1 row in set (0.14 sec)