MYSQL常见问题解决-2003-Can not connect to MySQL server on
方法一:登录数据库,赋权。1.登录mysql-uroot-p1234562.查看权限SELECThost,userFROMmysql.user;3.如果root没有%,说明没有权限,需要执行以下命令grantallon*.*to'root'@'%'IDENTIFIEDBY'123456'withgrantoption;flushprivileges;4.如果root已经有%,则查看MySQLSer