Greetings,
I have enherited a MySQL server. Its history is that at one time it was a slave server but now it is acting as a stand alone server. I want to get us back into replication but not being a MySQL expert I don't know how to procede with the state the database is currently in.
The server's history:
* Was a Slave then replication was broken and used as stand-alone
* Server was cloned and has a new name.
* Old Server Name = vmysql1
* Current Server Name = vprd-mysql01
* Current version: MySQL 5.5.11
I can't seem to clear all the replication parameters. I want to make this server the new Master MySQL server.
Below is the current SLAVE STATUS and below that is a snip from the my.cf file.
The Master host listed in the STATUS output is the old name of the slave server itself before it was cloned which I thought was odd.
Any assistance would be appreciated.
--Ezsra
SHOW SLAVE STATUS \G
*************************** 1. row ***************************
Slave_IO_State:
Master_Host: vmysql1
Master_User: rep_user
Master_Port: 3306
Connect_Retry: 60
Master_Log_File:
Read_Master_Log_Pos: 4
Relay_Log_File: vmysql1-relay-bin.000004
Relay_Log_Pos: 4
Relay_Master_Log_File:
Slave_IO_Running: No
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: 0
Last_Error:
Skip_Counter: 1
Exec_Master_Log_Pos: 0
Relay_Log_Space: 0
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 0
1 row in set (0.00 sec)
##### my.cnf
# this instance is a slave
server-id = 1
#master-host = 000.000.000.000
#master-user = rep_user
#master-password = Secrete
#master-connect-retry = 60
# databases to replicate
#replicate-do-db = a_db_name1
#replicate-do-db = a_db_name2
#replicate-do-db = a_db_name3
#binlog-do-db=kansasgovweb
# Uncomment the following if you want to log updates
#log-bin=/mysql/log/mysql-bin.log
# binary logging format - mixed recommended
#binlog_format=mixed
# Causes updates to non-transactional engines using statement format to be
# written directly to binary log. Before using this option make sure that
# there are no dependencies between transactional and non-transactional
# tables such as in the statement INSERT INTO t_myisam SELECT * FROM
# t_innodb; otherwise, slaves may diverge from the master.
#binlog_direct_non_transactional_updates=TRUE
I have enherited a MySQL server. Its history is that at one time it was a slave server but now it is acting as a stand alone server. I want to get us back into replication but not being a MySQL expert I don't know how to procede with the state the database is currently in.
The server's history:
* Was a Slave then replication was broken and used as stand-alone
* Server was cloned and has a new name.
* Old Server Name = vmysql1
* Current Server Name = vprd-mysql01
* Current version: MySQL 5.5.11
I can't seem to clear all the replication parameters. I want to make this server the new Master MySQL server.
Below is the current SLAVE STATUS and below that is a snip from the my.cf file.
The Master host listed in the STATUS output is the old name of the slave server itself before it was cloned which I thought was odd.
Any assistance would be appreciated.
--Ezsra
SHOW SLAVE STATUS \G
*************************** 1. row ***************************
Slave_IO_State:
Master_Host: vmysql1
Master_User: rep_user
Master_Port: 3306
Connect_Retry: 60
Master_Log_File:
Read_Master_Log_Pos: 4
Relay_Log_File: vmysql1-relay-bin.000004
Relay_Log_Pos: 4
Relay_Master_Log_File:
Slave_IO_Running: No
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: 0
Last_Error:
Skip_Counter: 1
Exec_Master_Log_Pos: 0
Relay_Log_Space: 0
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 0
1 row in set (0.00 sec)
##### my.cnf
# this instance is a slave
server-id = 1
#master-host = 000.000.000.000
#master-user = rep_user
#master-password = Secrete
#master-connect-retry = 60
# databases to replicate
#replicate-do-db = a_db_name1
#replicate-do-db = a_db_name2
#replicate-do-db = a_db_name3
#binlog-do-db=kansasgovweb
# Uncomment the following if you want to log updates
#log-bin=/mysql/log/mysql-bin.log
# binary logging format - mixed recommended
#binlog_format=mixed
# Causes updates to non-transactional engines using statement format to be
# written directly to binary log. Before using this option make sure that
# there are no dependencies between transactional and non-transactional
# tables such as in the statement INSERT INTO t_myisam SELECT * FROM
# t_innodb; otherwise, slaves may diverge from the master.
#binlog_direct_non_transactional_updates=TRUE