MySQL 赋予用户权限

MySQL 赋予用户权限

The user specified as a definer ('root'@'%') does not exist
我给其赋权限

mysql> grant all privileges on *.* to root@"%" identified by ".";
报错:
ERROR 1045 (28000): Access denied for user ''@'localhost' (using password: NO)

grant all privileges on *.* to root@"%"

这样才是空密码
温馨提示:答案为网友推荐,仅供参考