mysql 3306端口不能访问的解决办法:修改mysql库user表中host字段值为localhost的更新为【%】,代码为【mysql>use mysql;mysql>update user set host =