是由于你root帐号权限的问题。执行root 登录mysql,命令行mysql>GRANT ALL PRIVILEGES ON *.* TO ' root '@'%' identified by 'password';