MySQL Replication ERROR 1062: Duplicate Entry for Primary Key when starting Slave
Answers
-
In Linux:
vim /etc/my.cnf
In Windows: C:\Program Files\MySQL\MySQL Server 5.1\my.ini[mysqld] slave-skip-errors=1062 skip-slave-start
Save and quit the file by restart the service by using the following command
In Linux:sudo service mysqld restart
In Windows:
Go To Task manager > services > MySQL
Right Click and Stop service then Start ServiceAfter This Step, Login to MySQL Command Line and Restart SLAVE by following command:
STOP SLAVE; START SLAVE; SHOW SLAVE STATUS \G
0
Howdy, Stranger!
Categories
- 94 All Categories
- 20 VoIP
- 7 SIP
- 16 asterisk
- 44 Programming
- 1 Nodejs
- 4 javascript
- 19 PHP
- 8 Codeigniter
- 14 database
- 1 UI/UX
- 2 Flutter
- 28 OS
- 26 Linux
- 1 Virtualization
- 1 Android
- 1 Windows
- 2 legal