ssh登录后,进到bin目录,mysql.exe -uroot -pyourpassgrant 权限 on 数据库.* to 用户名@登录主机 identified by "密码" grant all on *.* to root@'%' identified by "密码" 
grant all on *.* to root@localhsot identified by "密码"