您好我有一个PHP webapp正在使用的sqlite2数据库,我希望Yii webapp能够访问它。此刻,我复制的数据库文件到本地服务器,我已经改变了的config/main.php到:与Yii webapp共享sqlite2数据库
'db'=>array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/thedatabase.db',
),
当我运行GII模型生成我得到:
CDbException
CDbCommand failed to execute the SQL statement: CDbCommand failed to prepare the SQL statement: SQLSTATE[HY000]: General error: 26 file is encrypted or is not a database. The SQL statement executed was: SELECT DISTINCT tbl_name FROM sqlite_master WHERE tbl_name<>'sqlite_sequence'
BTW我我能够使用
Exporting sqlite2 database to SQL
虽然我希望数据库留为sqlite2数据库到数据库转换为SQL,以便Yii的应用程序可以访问最新的用户INF O操作。