mysql all privileges

mysql赋予全部权限注意事项:grant all privileges on *.* to 'userName'@localhost identified by 'password';
要注意的是:grant all privilege并不能把“grant” 的权限赋给用户,如果要加,可以直接在mysql中使用use mysql; update user set Grant_priv ='Y'来达到要求。
如果装好了phpmyadmin的话直接改就行了

原文地址:https://www.cnblogs.com/xiangniu/p/2090868.html