2016-05-28 42 views
0

我是一個試圖在Windows機器上設置CodeIgniter和篝火的php新手。當我試圖建立篝火,我得到以下錯誤:面對設置篝火的問題

A Database Error Occurred Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
SHOW TABLES FROM
Filename: C:/xampp/htdocs/bonfire/bonfire/modules/migrations/libraries/Migrations.php Line Number: 730

上面提到的PHP腳本的語句給錯誤:

if ($this->_ci->db->table_exists($this->migrationsTable)) { 
    return true; 
} 

我已經安裝「笨\程序\設置\數據庫.php'文件的詳細信息,但仍然遇到此問題。

設置的詳細信息:在Win 7
XAMPP安裝機
PHP 7.0.6
的Apache 2.4.18
的MySql 10.1.13
笨2.2.6
篝火0.8.3

有沒有兼容性問題,或者我錯過了什麼?

回答

0

這裏有兩件事要檢查。

1,進入你的MySQL數據庫。我正在使用PHPMYADMIN。確保你已經創建了一個模式。我已經命名我的'測試'。

2,在'application-> config-> database.php'文件中,將架構名稱放在'數據庫'值中。

您必須先手動創建架構。我被這一兩次發現了。