CI在linux服务器上运行的时候,数据库配置主机名的时候必须是127.0.0.1,而不是localhost.并且phpmyadmin也有这样的要求 转载于:https://www.cnblogs.com/norm/p/6508576.html