我设置一个MySQL数据库作为一个权限:我的SQL设置权限
GRANT SELECT ON 'Whats-uav-u-100176'.* to "wvico-zag-u-100787"
但我得到这个错误:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''Whats-uav-u-100176'.* to "wvico-zag-u-100787"' at line 1
如何解决这个问题呢?
您的意思是'GRANT ALL'而不是'GRANT SELECT'试试? – zed
不,我不希望这个用户做任何编辑,只需选择 –
要查看被授予用户'SELECT FROM common_schema.sql_show_grants其中user =“应用” sql_grants;' – zed