mysql常见错误及解决方案 mysql error 2005 - Unknown MySQL server host 'localhost'(0) 此错误一般为地址信息错误,注意是否有空格。 在连接本地数据库时,最好使用127.0.0.1