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 "密码"
grant all on *.* to root@localhsot identified by "密码"
改成:
shell>mysqladmin -u用户名 -p password 新密码
提示输入你的旧密码 没有直接回车