在安装mysql 的机器上运行以下指令 mysql -uroot -p*** grant all privileges on *.* to 'root'@‘%’with grantoption; flush privileges; exit; 错误代码1045 GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'yourpaaa word '; flush privileges;