The customer must be notified any time a production MySQL database is restarted, as this requires a restart of the application. This includes all database restarts, whether or not we initiated the restart.
Apparently, they have no monitoring on the application (or website) itself, and rely upon us to provide these notifications.
root@localhost:(none)>root@localhost:(none)>root@localhost:(none)>root@localhost:(none)> show slave status\G*************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 67.192.44.130 Master_User: repl Master_Port: 3306 Connect_Retry: 10 Master_Log_File: db2-binlog.002031 Read_Master_Log_Pos: 521492418 Relay_Log_File: db3-3306-relay.000047 Relay_Log_Pos: 521489126 Relay_Master_Log_File: db2-binlog.002031 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table:Replicate_Wild_Ignore_Table: avail.%,avail\_db_.%,mysql.%,test.%,staging.% Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 521488988 Relay_Log_Space: 521492556 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: Yes Master_SSL_CA_File: /var/lib/mysql/ssl_db2/ca-cert.pem Master_SSL_CA_Path: /var/lib/mysql/ssl_db2 Master_SSL_Cert: /var/lib/mysql/ssl_db2/server-cert.pem Master_SSL_Cipher: Master_SSL_Key: /var/lib/mysql/ssl_db2/server-key.pem Seconds_Behind_Master: 01 row in set (0.00 sec)root@localhost:(none)>root@localhost:(none)> show slave status\G*************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 67.192.44.130 Master_User: repl Master_Port: 3306 Connect_Retry: 10 Master_Log_File: db2-binlog.002031 Read_Master_Log_Pos: 521967103 Relay_Log_File: db3-3306-relay.000047 Relay_Log_Pos: 521967241 Relay_Master_Log_File: db2-binlog.002031 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table:Replicate_Wild_Ignore_Table: avail.%,avail\_db_.%,mysql.%,test.%,staging.% Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 521967103 Relay_Log_Space: 521967241 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: Yes Master_SSL_CA_File: /var/lib/mysql/ssl_db2/ca-cert.pem Master_SSL_CA_Path: /var/lib/mysql/ssl_db2 Master_SSL_Cert: /var/lib/mysql/ssl_db2/server-cert.pem Master_SSL_Cipher: Master_SSL_Key: /var/lib/mysql/ssl_db2/server-key.pem Seconds_Behind_Master: 01 row in set (0.00 sec)root@localhost:(none)>
root@localhost:(none)> show slave status\G*************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 67.192.44.130 Master_User: repl Master_Port: 3306 Connect_Retry: 10 Master_Log_File: db2-binlog.002029 Read_Master_Log_Pos: 680575136 Relay_Log_File: db3-3306-relay.000031 Relay_Log_Pos: 940404269 Relay_Master_Log_File: db2-binlog.002026 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table:Replicate_Wild_Ignore_Table: avail.%,avail\_db_.%,mysql.%,test.%,staging.% Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 940404131 Relay_Log_Space: 3901806803 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: Yes Master_SSL_CA_File: /var/lib/mysql/ssl_db2/ca-cert.pem Master_SSL_CA_Path: /var/lib/mysql/ssl_db2 Master_SSL_Cert: /var/lib/mysql/ssl_db2/server-cert.pem Master_SSL_Cipher: Master_SSL_Key: /var/lib/mysql/ssl_db2/server-key.pem Seconds_Behind_Master: 633121 row in set (0.00 sec)root@localhost:(none)>
root@localhost:(none)> show slave status\G*************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 67.192.44.130 Master_User: repl Master_Port: 3306 Connect_Retry: 10 Master_Log_File: db2-binlog.002021 Read_Master_Log_Pos: 917243803 Relay_Log_File: db3-3306-relay.000004 Relay_Log_Pos: 197341587 Relay_Master_Log_File: db2-binlog.002017 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table:Replicate_Wild_Ignore_Table: avail.%,avail\_db_.%,mysql.%,test.%,staging.% Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 197341449 Relay_Log_Space: 5212418769 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: Yes Master_SSL_CA_File: /var/lib/mysql/ssl_db2/ca-cert.pem Master_SSL_CA_Path: /var/lib/mysql/ssl_db2 Master_SSL_Cert: /var/lib/mysql/ssl_db2/server-cert.pem Master_SSL_Cipher: Master_SSL_Key: /var/lib/mysql/ssl_db2/server-key.pem Seconds_Behind_Master: 2749991 row in set (0.00 sec)root@localhost:(none)>
root@localhost:(none)> show slave status\G*************************** 1. row *************************** Slave_IO_State: Queueing master event to the relay log Master_Host: 67.192.44.130 Master_User: repl Master_Port: 3306 Connect_Retry: 10 Master_Log_File: db2-binlog.002016 Read_Master_Log_Pos: 889233385 Relay_Log_File: db3-3306-relay.000002 Relay_Log_Pos: 5730792 Relay_Master_Log_File: db2-binlog.002016 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table:Replicate_Wild_Ignore_Table: avail.%,avail\_db_.%,mysql.%,test.%,staging.% Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 811664846 Relay_Log_Space: 83299331 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: Yes Master_SSL_CA_File: /var/lib/mysql/ssl_db2/ca-cert.pem Master_SSL_CA_Path: /var/lib/mysql/ssl_db2 Master_SSL_Cert: /var/lib/mysql/ssl_db2/server-cert.pem Master_SSL_Cipher: Master_SSL_Key: /var/lib/mysql/ssl_db2/server-key.pem Seconds_Behind_Master: 2814451 row in set (0.00 sec)root@localhost:(none)>
CHANGE MASTER TO MASTER_SSL = 1, MASTER_SSL_CA = '/var/lib/mysql/ssl_db2/ca-cert.pem', MASTER_SSL_CAPATH = '/var/lib/mysql/ssl_db2', MASTER_SSL_CERT = '/var/lib/mysql/ssl_db2/server-cert.pem', MASTER_SSL_KEY = '/var/lib/mysql/ssl_db2/server-key.pem';documented on clientSheet the two SSL cert directories...
documented on clientSheet the two SSL cert directories...
root@db3.leadconduit.com:~$ mysql -uroot -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 7076Server version: 5.0.67-community-log MySQL Community Edition (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the buffer.root@localhost:(none)>root@localhost:(none)> show processlist;+------+------+-----------+------+---------+-------+-------+------------------+| Id | User | Host | db | Command | Time | State | Info |+------+------+-----------+------+---------+-------+-------+------------------+| 6642 | root | localhost | NULL | Sleep | 10085 | | NULL || 7076 | root | localhost | NULL | Query | 0 | NULL | show processlist |+------+------+-----------+------+---------+-------+-------+------------------+2 rows in set (0.00 sec)root@localhost:(none)> source /mnt/tmp/mysql.sql;Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Database changedQuery OK, 0 rows affected (0.03 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.12 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 96 rows affected (0.00 sec)Records: 96 Duplicates: 0 Warnings: 0Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.05 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 38 rows affected (0.00 sec)Records: 38 Duplicates: 0 Warnings: 0Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 404 rows affected (0.00 sec)Records: 404 Duplicates: 0 Warnings: 0Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.03 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 841 rows affected (0.01 sec)Records: 841 Duplicates: 0 Warnings: 0Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 479 rows affected (0.08 sec)Records: 479 Duplicates: 0 Warnings: 0Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.13 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.03 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 1 row affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 3 rows affected (0.01 sec)Records: 3 Duplicates: 0 Warnings: 0Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.05 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 3 rows affected (0.00 sec)Records: 3 Duplicates: 0 Warnings: 0Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 34 rows affected (0.00 sec)Records: 34 Duplicates: 0 Warnings: 0Query OK, 0 rows affected (0.01 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)Query OK, 0 rows affected (0.00 sec)root@localhost:mysql> flush privileges;Query OK, 0 rows affected (0.03 sec)root@localhost:mysql>
-rw-rw---- 1 mysql mysql 1073741925 Feb 16 13:00 db1-binlog.002309-rw-rw---- 1 mysql mysql 1073741882 Feb 16 18:41 db1-binlog.002310-rw-rw---- 1 mysql mysql 1073742174 Feb 17 04:33 db1-binlog.002311-rw-rw---- 1 mysql mysql 1073742006 Feb 17 11:14 db1-binlog.002312-rw-rw---- 1 mysql mysql 1073742231 Feb 17 15:43 db1-binlog.002313-rw-rw---- 1 mysql mysql 1073742148 Feb 17 23:40 db1-binlog.002314-rw-rw---- 1 mysql mysql 1073741976 Feb 18 08:48 db1-binlog.002315pythian@db1 binlog $ scp -C db1-binlog.002307 db1-binlog.002308 db1-binlog.002309 db1-binlog.002310 db1-binlog.002311 db1-binlog.002312 db1-binlog.002313 db1-binlog.002314 db1-binlog.002315 pythian@db3.leadconduit.com:/mnt/tmpdb1-binlog.002307 1% 19MB 1.2MB/s 13:35 ETA
root@localhost:(none)> show processlist;+------+------+-----------+---------+---------+------+--------+------------------------------------------------------------------------------------------------------+| Id | User | Host | db | Command | Time | State | Info |+------+------+-----------+---------+---------+------+--------+------------------------------------------------------------------------------------------------------+| 11 | root | localhost | nextgen | Query | 2 | update | INSERT INTO `PRIMARY_KEY_HASH` VALUES (113561067,NULL,'0e041fc778d578f7964fcbdb5bde24be','00b6d8hlb' || 5810 | root | localhost | NULL | Query | 0 | NULL | show processlist |+------+------+-----------+---------+---------+------+--------+------------------------------------------------------------------------------------------------------+2 rows in set (0.00 sec)root@localhost:(none)>
root@db3.leadconduit.com:/var/lib/mysql/data/nextgen$ mysqlWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 2574Server version: 5.0.67-community-log MySQL Community Edition (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the buffer.root@localhost:(none)> show processlist;+------+------+-----------+---------+---------+------+--------+------------------------------------------------------------------------------------------------------+| Id | User | Host | db | Command | Time | State | Info |+------+------+-----------+---------+---------+------+--------+------------------------------------------------------------------------------------------------------+| 11 | root | localhost | nextgen | Query | 1 | update | INSERT INTO `LEAD` VALUES ('000t5bgya','000e7l3ao','000t5bhcj',NULL,0,'2008-07-17','2008-07-17 09:50 || 2574 | root | localhost | NULL | Query | 0 | NULL | show processlist |+------+------+-----------+---------+---------+------+--------+------------------------------------------------------------------------------------------------------+2 rows in set (0.00 sec)root@localhost:(none)>
root@localhost:(none)> show processlist;+------+------+-----------+---------+---------+------+--------+------------------------------------------------------------------------------------------------------+| Id | User | Host | db | Command | Time | State | Info |+------+------+-----------+---------+---------+------+--------+------------------------------------------------------------------------------------------------------+| 11 | root | localhost | nextgen | Query | 0 | update | INSERT INTO `FIELD_VALUE` VALUES ('00ej9jb9d','00ej8jxk6','0001es22r','Valid',NULL,NULL,NULL,NULL,NU || 2156 | root | localhost | NULL | Query | 0 | NULL | show processlist |+------+------+-----------+---------+---------+------+--------+------------------------------------------------------------------------------------------------------+2 rows in set (0.00 sec)root@localhost:(none)>
[pythian@db3:/mnt/tmp] mysql -uroot -pEnter password:Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 1778Server version: 5.0.67-community-log MySQL Community Edition (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the buffer.root@localhost:(none)> show processlist;+------+------+-----------+---------+---------+------+--------+------------------------------------------------------------------------------------------------------+| Id | User | Host | db | Command | Time | State | Info |+------+------+-----------+---------+---------+------+--------+------------------------------------------------------------------------------------------------------+| 11 | root | localhost | nextgen | Query | 1 | update | INSERT INTO `FIELD_VALUE` VALUES ('000xg9cvz','000xg9btm','0001er23z','Valid',NULL,NULL,NULL,NULL,NU || 1778 | root | localhost | NULL | Query | 0 | NULL | show processlist |+------+------+-----------+---------+---------+------+--------+------------------------------------------------------------------------------------------------------+2 rows in set (0.00 sec)root@localhost:(none)>
root@db3.leadconduit.com:/var/lib/mysql/innodb$ ls -ltotal 65033532-rw-r----- 1 mysql mysql 74459348 Feb 16 10:57 ib_logfile0.gz-rw-r----- 1 mysql mysql 79098346 Feb 16 03:02 ib_logfile1.gz-rw-r----- 1 mysql mysql 595903223 Feb 16 10:57 ibdata1.gz-rw-r----- 1 mysql mysql 65844859920 Feb 16 10:57 ibdata2.gzroot@db3.leadconduit.com:/var/lib/mysql/innodb$root@db3.leadconduit.com:/var/lib/mysql/innodb$ mv * ../old/root@db3.leadconduit.com:/var/lib/mysql/innodb$
root@db3.leadconduit.com:/var/lib/mysql$ ls -l binlog/total 0root@db3.leadconduit.com:/var/lib/mysql$ ls -l data/total 0root@db3.leadconduit.com:/var/lib/mysql$ ls -l innodb/total 0root@db3.leadconduit.com:/var/lib/mysql$ ls -l log/total 0root@db3.leadconduit.com:/var/lib/mysql$
root@db3.leadconduit.com:/var/lib/mysql$ mysql_install_db --datadir=/var/lib/mysql/data/Installing MySQL system tables...OKFilling help tables...OKTo start mysqld at boot time you have to copysupport-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !To do so, start the server, then issue the following commands:/usr/bin/mysqladmin -u root password 'new-password'/usr/bin/mysqladmin -u root -h db3.leadconduit.com password 'new-password'Alternatively you can run:/usr/bin/mysql_secure_installationwhich will also give you the option of removing the testdatabases and anonymous user created by default. This isstrongly recommended for production servers.See the manual for more instructions.You can start the MySQL daemon with:cd / ; /usr/bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.plcd mysql-test ; perl mysql-test-run.plPlease report any problems with the /usr/bin/mysqlbug script!The latest information about MySQL is available on the web athttp://www.mysql.comSupport MySQL by buying support/licenses at http://shop.mysql.comroot@db3.leadconduit.com:/var/lib/mysql$
innodb_data_home_dir = /var/lib/mysql/innodb#innodb_data_file_path=ibdata1:2432M;ibdata2:1024M:autoextend#innodb_data_file_path = ibdata1:1024M:autoextendinnodb_data_file_path = ibdata1:10M:autoextendinnodb_file_per_tableinnodb_log_group_home_dir = /var/lib/mysql/innodb
InnoDB: Setting log file /var/lib/mysql/innodb/ib_logfile1 size to 256 MBInnoDB: Database physically writes the file full: wait...InnoDB: Progress in MB: 100 200InnoDB: Doublewrite buffer not found: creating newInnoDB: Doublewrite buffer createdInnoDB: Creating foreign key constraint system tablesInnoDB: Foreign key constraint system tables created090216 19:10:38 InnoDB: Started; log sequence number 0 0090216 19:10:38 [Note] /usr/sbin/mysqld: ready for connections.Version: '5.0.67-community-log' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Edition (GPL)root@db3.leadconduit.com:/var/lib/mysql/log$root@localhost:(none)> show global variables like '%file_per%';+-----------------------+-------+| Variable_name | Value |+-----------------------+-------+| innodb_file_per_table | ON |+-----------------------+-------+1 row in set (0.02 sec)root@localhost:(none)>
root@db3.leadconduit.com:/mnt/tmp$root@db3.leadconduit.com:/mnt/tmp$root@db3.leadconduit.com:/mnt/tmp$root@db3.leadconduit.com:/mnt/tmp$ cat 3.shmysql -uroot -e 'set SQL_LOG_BIN=0; source avail_db1.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source avail_db2.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source batchrobot_prod.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source batchrobot_staging.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source bin.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source blacklistd.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source engine_prod.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source leadrobot_prod.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source maatkit.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source nextgen.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source nextgen_archive.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source ssl.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source staging.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source test.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source vphone200704.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source vphone200707.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source vphone200711.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source vphone200712.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source vphone200801.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source vphone200803.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source vphone200804.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source vphone200805.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source vphone200901.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source vzip200805.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source vzip200809.sql;' &mysql -uroot -e 'set SQL_LOG_BIN=0; source vzip200811.sql;' &root@db3.leadconduit.com:/mnt/tmp$ sh 3.shroot@db3.leadconduit.com:/mnt/tmp$ ps -ef | grep mysqlroot 7656 25473 0 Feb13 pts/3 00:00:00 mysql -u root -pmysql 9997 1 0 10:47 ? 00:00:26 /usr/sbin/mysqld --user=mysql --port=3307 --default-storage-engine=InnoDB --character_set_server=latin1 --old_passwords=1 --skip-bdb --tmpdir=/var/lib/mysql2/tmp --socket=/var/lib/mysql2/mysql.sock --pid-file=/var/lib/mysql2/mysql.pid --log-error=/var/lib/mysql2/log/mysql-err.log --log_slow_queries=/var/lib/mysql2/log/mysql-slow.log --long_query_time=1 --skip-slave-start --replicate-wild-ignore-table=avail.% --replicate-wild-ignore-table=avail\_db_.% --replicate-wild-ignore-table=mysql.% --replicate-wild-ignore-table=test.% --server-id=0102510549 --log-bin=/var/lib/mysql2/binlog/db3-3307-binlog --log-bin-index=/var/lib/mysql2/binlog/db3-3307-binlog.index --expire_logs_days=7 --sync_binlog=1 --basedir=/usr --datadir=/var/lib/mysql2/data --language=/usr/share/mysql/english --skip-locking --key_buffer=32M --max_allowed_packet=1M --thread_stack=128K --sort_buffer_size=8M --max_connections=500 --query_cache_type=1 --query_cache_size=64M --query_cache_limit=3145728 --table_cache=2048 --read_buffer_size=2M --innodb_data_home_dir=/var/lib/mysql2/innodb --innodb_data_file_path=ibdata1:10M:autoextend --innodb_file_per_table --innodb_log_group_home_dir=/var/lib/mysql2/innodb --innodb_buffer_pool_size=1G --innodb_additional_mem_pool_size=32M --innodb_log_file_size=256M --innodb_log_files_in_group=2 --innodb_log_buffer_size=8M --innodb_flush_log_at_trx_commit=1 --innodb_flush_method=O_DSYNC --innodb_adaptive_hash_index=0pythian 10428 10409 0 10:51 pts/10 00:00:00 mysql -p -uroot --socket=/var/lib/mysql2/mysql.sockmysql 10564 1 5 19:10 pts/7 00:00:22 /usr/sbin/mysqld --user=mysql --port=3306 --default-storage-engine=InnoDB --character_set_server=latin1 --old_passwords=1 --skip-bdb --tmpdir=/var/lib/mysql/tmp --socket=/var/lib/mysql/mysql.sock --pid-file=/var/lib/mysql/mysql.pid --log-error=/var/lib/mysql/log/mysql-err.log --log_slow_queries=/var/lib/mysql/log/mysql-slow.log --long_query_time=1 --skip-slave-start --replicate-wild-ignore-table=avail.% --replicate-wild-ignore-table=avail\_db_.% --replicate-wild-ignore-table=mysql.% --replicate-wild-ignore-table=test.% --replicate-wild-ignore-table=staging.% --server-id=010251051048 --log-bin=/var/lib/mysql/binlog/db3-3306-binlog --log-bin-index=/var/lib/mysql/binlog/db3-3306-binlog.index --expire_logs_days=7 --sync_binlog=1 --log-slave-updates --relay-log=/var/lib/mysql/relay/db3-3306-relay.log --relay-log-info-file=/var/lib/mysql/relay/db3-3306-relay-log.info --relay-log-index=/var/lib/mysql/relay/db3-3306-relay.index --basedir=/usr --datadir=/var/lib/mysql/data --language=/usr/share/mysql/english --skip-locking --key_buffer=32M --max_allowed_packet=1M --thread_stack=128K --sort_buffer_size=8M --max_connections=500 --query_cache_type=1 --query_cache_size=64M --query_cache_limit=3145728 --table_cache=2048 --read_buffer_size=2M --innodb_data_home_dir=/var/lib/mysql/innodb --innodb_data_file_path=ibdata1:10M:autoextend --innodb_file_per_table --innodb_log_group_home_dir=/var/lib/mysql/innodb --innodb_buffer_pool_size=4G --innodb_additional_mem_pool_size=32M --innodb_log_file_size=256M --innodb_log_files_in_group=2 --innodb_log_buffer_size=8M --innodb_flush_log_at_trx_commit=1 --innodb_flush_method=O_DSYNC --innodb_adaptive_hash_index=0root 10984 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source avail_db1.sql;root 10985 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source avail_db2.sql;root 10988 1 1 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source batchrobot_prod.sql;root 10990 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source batchrobot_staging.sql;root 10995 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source engine_prod.sql;root 10996 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source leadrobot_prod.sql;root 11002 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source nextgen.sql;root 11004 1 10 19:17 pts/7 00:00:01 mysql -uroot -e set SQL_LOG_BIN=0; source nextgen_archive.sql;root 11008 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source staging.sql;root 11010 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source vphone200704.sql;root 11013 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source vphone200707.sql;root 11016 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source vphone200711.sql;root 11018 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source vphone200712.sql;root 11020 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source vphone200801.sql;root 11021 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source vphone200803.sql;root 11022 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source vphone200804.sql;root 11023 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source vphone200805.sql;root 11027 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source vphone200901.sql;root 11028 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source vzip200805.sql;root 11030 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source vzip200809.sql;root 11033 1 0 19:17 pts/7 00:00:00 mysql -uroot -e set SQL_LOG_BIN=0; source vzip200811.sql;root 11037 10850 0 19:17 pts/7 00:00:00 grep mysqlroot@db3.leadconduit.com:/mnt/tmp$
root@db3.leadconduit.com:/var/lib/mysql/innodb$ ls -lhtotal 334G-rw-r----- 1 mysql mysql 72M Feb 16 10:57 ib_logfile0.gz-rw-r----- 1 mysql mysql 76M Feb 16 03:02 ib_logfile1.gz-rw-r----- 1 mysql mysql 569M Feb 16 10:57 ibdata1.gz-rw-r----- 1 mysql mysql 280G Feb 16 10:57 ibdata2-rw------- 1 root root 54G Feb 16 18:03 ibdata2.gzroot@db3.leadconduit.com:/var/lib/mysql/innodb$
root@db3.leadconduit.com:/var/lib/mysql/innodb$ ls -lhtotal 295G-rw-r----- 1 mysql mysql 72M Feb 16 10:57 ib_logfile0.gz-rw-r----- 1 mysql mysql 76M Feb 16 03:02 ib_logfile1.gz-rw-r----- 1 mysql mysql 569M Feb 16 10:57 ibdata1.gz-rw-r----- 1 mysql mysql 280G Feb 16 10:57 ibdata2-rw------- 1 root root 15G Feb 16 13:36 ibdata2.gzroot@db3.leadconduit.com:/var/lib/mysql/innodb$
root@localhost:regpath_staging> show databases;+--------------------+| Database |+--------------------+| information_schema || hyperic || mysql || regpath || regpath_staging || staging || test || zabbix |+--------------------+8 rows in set (0.00 sec)root@localhost:regpath_staging>
root@db3.leadconduit.com:~$ mkfs.xfs /dev/sdhroot@db3.leadconduit.com:~$ mkdir /var/lib/mysql2root@db3.leadconduit.com:~$ cd /etc/root@db3.leadconduit.com:/etc$ cp fstab fstab2eroot@db3.leadconduit.com:/etc$ emacs fstabroot@db3.leadconduit.com:/etc$ diff -u fstab fstab2--- fstab 2009-02-15 23:42:31.000000000 -0500+++ fstab2 2009-02-15 23:42:06.000000000 -0500@@ -1,7 +1,6 @@ /dev/sda1 / ext3 defaults 1 1 /dev/sdb /mnt ext3 defaults 1 2 /dev/sdj /var/lib/mysql xfs noatime,nodiratime 1 2-/dev/sdh /var/lib/mysql2 xfs noatime,nodiratime 1 2 /swapfile swap swap defaults 0 0 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0root@db3.leadconduit.com:/etc$ mount /var/lib/mysql2root@db3.leadconduit.com:/etc$ df -hFilesystem Size Used Avail Use% Mounted on/dev/sda1 9.9G 3.4G 6.0G 36% //dev/sdb 414G 2.7G 390G 1% /mntnone 3.8G 0 3.8G 0% /dev/shm/dev/sdj 500G 373G 127G 75% /var/lib/mysql/dev/sdh 100G 544K 100G 1% /var/lib/mysql2root@db3.leadconduit.com:/etc$
root@db3.leadconduit.com:/etc$root@db3.leadconduit.com:/etc$ mysqld_multi reportReporting MySQL serversMySQL server from group: mysqld3306 is runningMySQL server from group: mysqld3307 is not runningroot@db3.leadconduit.com:/etc$root@db3.leadconduit.com:/etc$root@db3.leadconduit.com:/etc$root@db3.leadconduit.com:/etc$
[pythian@db3:~/working][pythian@db3:~/working][pythian@db3:~/working] mysql -uroot -p --socket=/var/lib/mysql2/mysql.sockEnter password:\sWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 3Server version: 5.0.67-community-log MySQL Community Edition (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the buffer.root@localhost:(none)> \s--------------mysql Ver 14.12 Distrib 5.0.67, for redhat-linux-gnu (x86_64) using readline 5.1Connection id: 3Current database:Current user: root@localhostSSL: Not in useCurrent pager: stdoutUsing outfile: ''Using delimiter: ;Server version: 5.0.67-community-log MySQL Community Edition (GPL)Protocol version: 10Connection: Localhost via UNIX socketServer characterset: latin1Db characterset: latin1Client characterset: latin1Conn. characterset: latin1UNIX socket: /var/lib/mysql2/mysql.sockUptime: 3 min 29 secThreads: 1 Questions: 2635 Slow queries: 1 Opens: 307 Flush tables: 1 Open tables: 29 Queries per second avg: 12.608--------------root@localhost:(none)>
root@localhost:(none)> show slave status\G*************************** 1. row *************************** Slave_IO_State: Master_Host: 192.168.2.131 Master_User: replicant Master_Port: 3306 Connect_Retry: 10 Master_Log_File: db1-binlog.002307 Read_Master_Log_Pos: 653305988 Relay_Log_File: db2-relay.000558 Relay_Log_Pos: 3209031 Relay_Master_Log_File: db1-binlog.002307 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: avail.%,avail\_db_.%,mysql.%,test.%,zabbix.% Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 653305988 Relay_Log_Space: 3209031 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: NULL1 row in set (0.00 sec)root@localhost:(none)>
CHANGE MASTER TO MASTER_HOST='67.192.44.131', MASTER_USER='repl', MASTER_PASSWORD='[PASSWORD]', MASTER_PORT=3306, MASTER_LOG_FILE='db1-binlog.002307', MASTER_LOG_POS=653305988, MASTER_CONNECT_RETRY=10, MASTER_SSL = 1, MASTER_SSL_CA = '/var/lib/mysql/ssl/ca-cert.pem', MASTER_SSL_CAPATH = '/var/lib/mysql/ssl', MASTER_SSL_CERT = '/var/lib/mysql/ssl/server-cert.pem', MASTER_SSL_KEY = '/var/lib/mysql/ssl/server-key.pem';
root@localhost:(none)> show slave status\G*************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 67.192.44.131 Master_User: repl Master_Port: 3306 Connect_Retry: 10 Master_Log_File: db1-binlog.002307 Read_Master_Log_Pos: 657212366 Relay_Log_File: mysql-relay-bin.000002 Relay_Log_Pos: 31502 Relay_Master_Log_File: db1-binlog.002307 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table:Replicate_Wild_Ignore_Table: avail.%,avail\_db_.%,mysql.%,test.%,zabbix.% Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 653337254 Relay_Log_Space: 3906614 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: Yes Master_SSL_CA_File: /var/lib/mysql/ssl/ca-cert.pem Master_SSL_CA_Path: /var/lib/mysql/ssl Master_SSL_Cert: /var/lib/mysql/ssl/server-cert.pem Master_SSL_Cipher: Master_SSL_Key: /var/lib/mysql/ssl/server-key.pem Seconds_Behind_Master: 7161 row in set (0.00 sec)root@localhost:(none)>
root@localhost:(none)>root@localhost:(none)> slave stop;Query OK, 0 rows affected (0.05 sec)root@localhost:(none)> show slave status\G*************************** 1. row *************************** Slave_IO_State: Master_Host: 67.192.44.131 Master_User: repl Master_Port: 3306 Connect_Retry: 10 Master_Log_File: db1-binlog.002307 Read_Master_Log_Pos: 679481764 Relay_Log_File: mysql-relay-bin.000003 Relay_Log_Pos: 2758132 Relay_Master_Log_File: db1-binlog.002307 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: avail.%,avail\_db_.%,mysql.%,test.%,zabbix.% Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 678399445 Relay_Log_Space: 3840451 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: Yes Master_SSL_CA_File: /var/lib/mysql/ssl/ca-cert.pem Master_SSL_CA_Path: /var/lib/mysql/ssl Master_SSL_Cert: /var/lib/mysql/ssl/server-cert.pem Master_SSL_Cipher: Master_SSL_Key: /var/lib/mysql/ssl/server-key.pem Seconds_Behind_Master: NULL1 row in set (0.00 sec)root@localhost:(none)>
root@db3.leadconduit.com:/mnt/tmp$root@db3.leadconduit.com:/mnt/tmp$root@db3.leadconduit.com:/mnt/tmp$root@db3.leadconduit.com:/mnt/tmp$root@db3.leadconduit.com:/mnt/tmp$root@db3.leadconduit.com:/mnt/tmp$ pwd/mnt/tmproot@db3.leadconduit.com:/mnt/tmp$ ls -ltotal 0-rw-r--r-- 1 root root 0 Feb 15 23:33 kroot@db3.leadconduit.com:/mnt/tmp$ df -hFilesystem Size Used Avail Use% Mounted on/dev/sda1 9.9G 3.4G 6.0G 36% //dev/sdb 414G 199M 393G 1% /mntnone 3.8G 0 3.8G 0% /dev/shm/dev/sdj 500G 373G 127G 75% /var/lib/mysqlroot@db3.leadconduit.com:/mnt/tmp$ mysqldump -uroot -p --opt --lock-all-tables --all-databases > data.sqlEnter password:
root@db2 ssl #root@db2 ssl #root@db2 ssl # pwd/var/lib/mysql/sslroot@db2 ssl # ls -ltotal 32-rw-r--r-- 1 mysql mysql 1334 Feb 13 15:40 ca-cert.pem-rw-r--r-- 1 mysql mysql 1675 Feb 13 15:39 ca-key.pem-rw-r--r-- 1 mysql mysql 1103 Feb 13 15:42 client-cert.pem-rw-r--r-- 1 mysql mysql 1679 Feb 13 15:41 client-key.pem-rw-r--r-- 1 mysql mysql 960 Feb 13 15:41 client-req.pem-rw-r--r-- 1 mysql mysql 1103 Feb 13 15:41 server-cert.pem-rw-r--r-- 1 mysql mysql 1679 Feb 13 15:41 server-key.pem-rw-r--r-- 1 mysql mysql 960 Feb 13 15:41 server-req.pemroot@db2 ssl #
root@db2 etc #root@db2 etc # cd /etc/root@db2 etc #root@db2 etc #root@db2 etc # cp my.cnf my.cnf_ORIGINALroot@db2 etc # nano -w my.cnfroot@db2 etc # diff -u my.cnf my.cnf_ORIGINAL--- my.cnf 2009-02-13 15:43:49.000000000 -0600+++ my.cnf_ORIGINAL 2009-02-13 15:43:09.000000000 -0600@@ -20,11 +20,6 @@ old_passwords = 1 skip-bdb--ssl-key=/var/lib/mysql/ssl/server-key.pem-ssl-ca=/var/lib/mysql/ssl/ca-cert.pem-ssl-cert=/var/lib/mysql/ssl/server-cert.pem- tmpdir = /var/lib/mysql/tmp socket = /var/lib/mysql/mysql.sock pid-file = /var/lib/mysql/mysql.pidroot@db2 etc #
root@localhost:(none)> show global variables like '%ssl%';+---------------+------------------------------------+| Variable_name | Value |+---------------+------------------------------------+| have_openssl | YES || have_ssl | YES || ssl_ca | /var/lib/mysql/ssl/ca-cert.pem || ssl_capath | || ssl_cert | /var/lib/mysql/ssl/server-cert.pem || ssl_cipher | || ssl_key | /var/lib/mysql/ssl/server-key.pem |+---------------+------------------------------------+7 rows in set (0.01 sec)root@localhost:(none)>
root@localhost:(none)> slave stop;Query OK, 0 rows affected (0.01 sec)root@localhost:(none)> show slave status\G*************************** 1. row *************************** Slave_IO_State: Master_Host: 67.192.44.130 Master_User: replicant Master_Port: 3306 Connect_Retry: 60 Master_Log_File: db2-binlog.001994 Read_Master_Log_Pos: 461755022 Relay_Log_File: mysql-relay-bin.000022 Relay_Log_Pos: 1038275922 Relay_Master_Log_File: db2-binlog.001987 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: avail.%,avail\_db_.%,mysql.%,test.%,zabbix.% Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 1038275784 Relay_Log_Space: 7978039294 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: NULL1 row in set (0.00 sec)root@localhost:(none)>
root@localhost:(none)>root@localhost:(none)> show slave status\G*************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: 67.192.44.130 Master_User: replicant Master_Port: 3306 Connect_Retry: 60 Master_Log_File: db2-binlog.001993 Read_Master_Log_Pos: 1024737519 Relay_Log_File: mysql-relay-bin.000013 Relay_Log_Pos: 232523496 Relay_Master_Log_File: db2-binlog.001984 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table:Replicate_Wild_Ignore_Table: avail.%,avail\_db_.%,mysql.%,test.%,zabbix.% Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 232523358 Relay_Log_Space: 10688510010 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: 2010231 row in set (0.00 sec)root@localhost:(none)> select 201023/60/60;+--------------+| 201023/60/60 |+--------------+| 55.83972222 |+--------------+1 row in set (0.00 sec)root@localhost:(none)>
1) msysqldump and also save the physical the existing data (db3 - origional -- this was on there before)2) get the hotbackup working3) guesstimate the binary log position and start replication, ignoring all the errors4) do a sync check5) restore the dump from step 16) rebuild as innodb_file_per_table using dump/restore
innobackup: Backup created in directory '/backup/hot_backup/db2.actp/working/2009-02-09_22-01-38'innobackup: MySQL binlog position: filename 'Warning', position (Code 1287): 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead090210 03:55:04 innobackup: innobackup completed OK![OK]: Deleting the folder "/backup/hot_backup/db2.actp/current" ... -- DEBUG: filename = /backup/hot_backup/db2.actp/current/1_2009-02-09_22h01m37s -- DEBUG: date_time = 2009-02-10 03:55:04
~pythian/ibbackup --uncompress --apply-log /var/lib/mysql/newdb2/2009-02-09_22-01-38/backup-my.cnf