在mysql命令行下输入:
grant all privileges on *.* to root@"%" identified by 'passwd' with grant option;
让%(所有ip的)用户拥有访问所有库和表的权限。用户名为root 密码为passwd;.
flush privileges;
刷新权限,不用重启立即生效
转载于:https://blog.51cto.com/alygle/875505
在mysql命令行下输入:
grant all privileges on *.* to root@"%" identified by 'passwd' with grant option;
让%(所有ip的)用户拥有访问所有库和表的权限。用户名为root 密码为passwd;.
flush privileges;
刷新权限,不用重启立即生效
转载于:https://blog.51cto.com/alygle/875505