执行任何IP的yuhaohao用户登录
create user 'yuhaohao'@'%' identified by '123456';
执行指定IP的yuhaohao用户登录
create user 'yuhaohao'@'192.118.1.1' identified by '123456';
grant all privileges on test.table1 to "yuhaohao"@'%';
grant all privileges on test.* to "yuhaohao"@'%';