方法一:新建用户远程登录
grant all on punch_clock.* to punch@'%' identified by '!@#$805073259clock' with grant option;
flush privileges;
punch
是新建的用户,
!@#$805073259clock
是新用户的密码<br/>
punch_clock.*
punch_clock数据库的所有权限 <br/>
%
可以在哪个ip登录
方法二:为已经有的用户授权
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;