我一直在按照留言板教程一步一步。他們使用load.sqlite.sql來創建數據庫並使用數據加載它。但我得到:Zend Framework教程 - 我不斷收到sql錯誤 - 未知的數據庫
C:\quickstart> php scripts\load.mysql.php --withdata
AN ERROR HAS OCCURED:
SQLSTATE[42000] [1049] Unknown database 'c:\quickstart\data\db\guestbook-dev.db'
My application\configs\application.ini looks like:
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
resources.view[] =
resources.db.adapter = "PDO_MYSQL"
resources.db.params.username = "root"
resources.db.params.password = ""
resources.db.params.host = "localhost"
resources.db.params.dbname = "C:\quickstart\data\db\guestbook-dev.db"
您正在使用pdo_mysql適配器,並且您傳遞了一個路徑作爲數據庫名稱......?!?!?! – markus 2011-04-21 15:08:14