mysql中使用 mysql -uroot -p123456 即可登入,root是用户,123456是我的密码。
原因:eclipse配置文件中的密码写错,改成123456(跟mysql的一致),重启服务器运行即可。