wamp サーバーでマスタースレーブ複製を使用してデータベースを複製しようとしています。my.ini ファイルに次の変更を加えました。
# Number of threads allowed inside the InnoDB kernel.The optimal value
# depends highly on the application, hardware as well as the OS
# scheduler properties. A too high value may lead to thread thrashing.
innodb_thread_concurrency=8
#Defining the directory for logs and database and the server id
log-bin=C:\wamp\logs\mysql-bin.log
binlog-do-db=bank
server-id=2
マスターサーバーでこれを構成しました:
mysql> GRANT REPLICATION SLAVE
-> ON *.* TO 'root'@'slave_ip'
-> IDENTIFIED BY '';
スレーブサーバーで、これを構成しました:
mysql> CHANGE MASTER TO
-> MASTER_HOST='(master_ip)',
-> MASTER_PORT=3306,
-> MASTER_USER='root',
-> MASTER_PASSWORD='';
次のエラーが表示されました: エラー 1198: この操作は実行中のスレーブでは実行できません。最初に停止スレーブを実行します。
それで私は停止スレーブを実行しましたが、何も起こりませんでした。どんな助けでも大歓迎です。