grant select,insert,update,delete on *.* to root@"192.168.1.1" Identified by "123456"; 这个是给本机加外来访问者的权限。FLUSH PRIVILEGES; 立即生效权限