2012-09-11 35 views
-2

所以我只是更新phpMyAdmin爲我的MAMP本地開發建議由phpMyAdmin。MySQL錯誤#1064爲WordPress

我現在使用MAMP主要是爲了在本地開發WordPress網站。現在

,我想創建一個新的數據庫每一次,我得到這個錯誤:

SELECT MAX(version) FROM.WHERE `db_name` = 'temp' 
AND `table_name` = '' 
AND FIND_IN_SET( 'CREATE DATABASE', tracking) >0 

MySQL said:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL >server version for the right syntax to use near 'WHERE db_name = 'temp' AND table_name = >'' AND FIND_IN_SET('CREATE DATABAS' at line 1

但是,仍然是創建數據庫。

現在每次我點擊一個數據庫的時候,我得到這個錯誤像這樣(在這個例子中,數據庫的名稱是「IOS」

SELECT tracking_active FROM.WHERE db_name = 'ios' 
AND table_name = 'wp_commentmeta' 
ORDER BY version DESC 

MySQL said:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE db_name = 'ios' AND table_name = 'wp_commentmeta' ORDER BY version DESC' at line 1

我沒有很多如果有人在那裏有同樣的問題/知道發生了什麼,我真的很感謝幫助你計算出來。

+0

我問了這個問題,但因爲某種原因被拒絕了,儘管我仍然沒有答案。有人能解釋/幫助我嗎? –

+1

由於這個問題已關閉,我不能把答案,但問題駐留在phpmyadmin'confic.inc.php文件。如果您進行了任何更改,請將它們還原或更改以$ cfg開頭的行,如下所示: '$ cfg ['Servers'] [$ i] ['pmadb'] ='phpmyadmin'; $ cfg ['Servers'] [$ i] ['bookmarktable'] ='pma_bookmark'; $ cfg ['Servers'] [$ i] ['relation'] ='pma_relation'; $ cfg ['Servers'] [$ i] ['table_info'] ='pma_table_info'; $ cfg ['Servers'] [$ i] ['table_coords'] ='pma_table_coords'; $ cfg ['Servers'] [$ i] ['pdf_pages'] ='pma_pdf_pages'; $ cfg ['Servers'] [$ i] ['column_info'] ='pma_column_info'; ' – bicycle

+1

續: '$ cfg ['Servers'] [$ i] ['history'] ='pma_history'; $ cfg ['Servers'] [$ i] ['table_uiprefs'] ='pma_table_uiprefs'; $ cfg ['Servers'] [$ i] ['tracking'] ='pma_tracking'; $ cfg ['Servers'] [$ i] ['designer_coords'] ='pma_designer_coords'; $ cfg ['Servers'] [$ i] ['userconfig'] ='pma_userconfig'; $ cfg ['Servers'] [$ i] ['recent'] ='pma_recent';' – bicycle

回答

3

我注意到在FROM.WHERE,有a dot
這是一個錯字,或者它在源代碼中。

#1064是語法錯誤;你應該總是先檢查你的SQL語句。

+0

謝謝。你知道我可以在哪裏查看源代碼嗎?這是一個默認的WordPress安裝,因此我沒有對任何SQL語句進行任何更改。 –

+0

安裝了任何插件? – mikespook

+0

嗨 - 如果你的意思是WordPress插件,不,我不這麼認爲。如果你的意思是一種不同類型的插件,答案不是我所知道的。 –