Академический Документы
Профессиональный Документы
Культура Документы
_ReplicationStatus)
MySQL Replication Error
mysql -e "show slave status\G" results:
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 10.45.78.142
Master_User: repl
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000533
Read_Master_Log_Pos: 73244568
Relay_Log_File: relay-bin.001198
Relay_Log_Pos: 86847
Relay_Master_Log_File: mysql-bin.000521
Slave_IO_Running: Yes
Slave_SQL_Running: No
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 1062
Last_Error: Error 'Duplicate entry 'hs_form_14e7c739e5543f8c328
011d81f56b1c9' for key 1' on query.
=====================================================
relay-bin.index => The salve server uses relay-bin.index to track the relay log
file currently in use.
master.info => contains details of master log file, read_master_log_pos etc
relay-log.info
==========================
[root@RMG15DBM01DRP mysql]# mysql -e "show columns from rmgdrupal.cache"|grep PR
I|awk '{print $1}'
[root@RMG15DBM01DRP mysql]# export test=`mysql -e "select * from rmgdrupal.cache
where cid='ife_form_ids'"`
[root@RMG15DBM01DRP mysql]# mysql -e "select length('$test')"