微擎出现500错误,看了下具体错误提示:
$this->pdo = new $dbclass($dsn, $cfg['username'], $cfg['password'], $options);
db.class.php这个是没问题的。
只是把
$config['db']['master']['host'] = '127.0.0.1';
改成:
$config['db']['master']['host'] = 'localhost';
就好了,好像默认安装微擎都是默认的127.0.0.1
如果之前就是localhost,那就改成127.0.0.1