2012-11-07 80 views
1

我試圖運行在MySQL以下查詢:MySQL的主 - 主複製

GRANT REPLICATION SLAVE ON *.* TO 'replication'@’10.141.2.%’ IDENTIFIED BY ‘slave’; 

它使返回以下錯誤:

ERROR 1064 (42000): 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 '??10.141.2.%’ IDENTIFIED BY ‘slave’' at line 1 

我到底做錯了什麼?

謝謝。

回答

1

您正在使用「花式引語」(看他們如何'精益')?與'

'replication'@’10.141.2.%’更換應該'replication'@'10.141.2.%'

(也,看來你正在做它IDENTIFIED BY ‘slave’;以及)

+1

感謝。我完全想念那個。 – user1527556

+0

@ user1527556很高興這是一個簡單的修復 –