我有一个工作正常的主 mysql 服务器。在它给出的 show status 命令上
+-------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+-------------------+----------+--------------+------------------+
| master-bin.000004 | 181 | | |
+-------------------+----------+--------------+------------------+
现在我正在尝试为此设置一个奴隶
salve my.ini 配置是
MASTER_HOST='master ip',
MASTER_PORT=3306,
MASTER_USER='repluser',
MASTER_PASSWORD='slavepass',
server-id = 2
relay-log-index = slave-relay-bin.index
relay-log = slave-relay-bin
replicate-wild-ignore-table=mysql.%
replicate-wild-ignore-table=information_schema.%
replicate-wild-ignore-table=performance_schema.%
但是当我检查奴隶状态时,我得到一些错误如下
| Waiting for master to send event | 10.0.100.168 | repl | 3306 |
60 | mysql-bin.000004 | 181 | mysql-relay-bin.000002
| 638 | mysql-bin.000001 | Yes | No |
| | |
| | | 1062 | Erro
r 'Duplicate entry '3094' for key 'PRIMARY'' on query. Default database: ''. Que
ry: 'INSERT INTO
`phpmyadmin`.`pma_history`
(`username`,
`db`,
`table`,
`timevalue`,
`sqlquery`)
VALUES
('root',
'',
'',
NOW(),
'SHOW PROCESSLIST')' | 0 | 493 |
6232 | None | | 0 | No
| | | |
| | NULL | No |
0 | | 1062 | Error 'Duplicate entry '3094' for
key 'PRIMARY'' on query. Default database: ''. Query: 'INSERT INTO
`phpmyadmin`.`pma_history`
(`username`,
`db`,
`table`,
`timevalue`,
`sqlquery`)
VALUES
('root',
'',
'',
NOW(),
'SHOW PROCESSLIST')' |
注意:错误是从命令提示符复制的两个系统都在 windows7 上运行,XAMPP 堆栈位于同一本地网络上
是因为我现在的奴隶已经有一些数据库吗?