解决方法:
在centos中登录mysql输入下面指令:
1 grant all PRIVILEGES on *.* to 'root'@'192.168.237.1' identified by '123456' WITH GRANT OPTION;