4
有没有假设用户已经不存在创建用户并授予任何权限
grant usage on databasename.* to 'username'@'localhost' identified by 'password'
和
grant usage on *.* to 'username'@'localhost' identified by 'password'
和
create user 'username'@'localhost' identified by 'password'
之间的差异?我的理解是,每一个都会为用户创建一个密码,并且不会授予用户特权。
如果用户不存在,那么我期待有一些差异:
- 的
grant
-statements将密码更改为“密码” - 的
create user
语句来将失败,错误