typecho+SQLite的安装
出师不捷。解压typecho的安装包、执行完安装界面后,却提示:500 Database Query Error。查看nginx的日志,只有一行:
PHP message: SQLSTATE[HY000]: General error: 1 no such table: typecho_options
百度了一下,并没有找到什么特别的帮助。
手动查看config.inc.php配置文件,猛然想起安装时填写的database信息都是mysql的(host、port、database),而sqlite安装明明只需要一个文件路径啊!于是翻看install.php的代码,发现
$adapter = _r('dbAdapter', 'Mysql');
$type = explode('_', $adapter);
。。。果然,默认是Mysql!(奇怪的是界面上明明只有Pdo_SQLite的选项啊?)
手动加上参数重新访问:http://talebook.org/blog/install.php?config&dbAdapter=SQLite
然后一切就正常了。
Sigh。
评论已关闭