Last_SQL_Error: Error 'Table 'mytest' already exists' on query. Default database: 'project'. Query:

解決方法:
在這裏插入圖片描述
解決辦法:

master:

mysql> FLUSH PRIVILEGES;

Query OK, 0 rows affected (0.07 sec)
mysql> show master status ;
±-----------------±---------±-------------±-----------------±------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set | ±-----------------±---------±-------------±-----------------±------------------+ | mysql-bin.000002 | 322 | | | | ±-----------------±---------±-------------±-----------------±------------------+ 1 row in set (0.00 sec) mysql>
在這裏插入圖片描述
mysql> stop slave;
Query OK, 0 rows affected (0.13 sec)
mysql> change master to
-> master_host=‘127.0.0.1’,
-> master_port=3306,
-> master_user=‘slave’,
-> master_password=‘123456’,
-> master_log_file=‘mysql-bin.000002’,
-> master_log_pos=322;
Query OK, 0 rows affected, 1 warning (0.27 sec)
在這裏插入圖片描述

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章