欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

利用Xtrabackup備份集合恢復一臺從庫的過程

系統 1883 0

1 time tar -xvf Open..tarx.gz

real ? ?35m22.502s
user ? ?10m16.499s
sys ? ? 1m28.578s
You have new mail in /var/spool/mail/root
PS: ?Open..tarx.gzv 大小80G


2 time innobackupex --user=xxx --password=xxxx --defaults-file=/etc/my.cnf ?--apply-log /home/alldb/
real ? ?1m14.259s
user ? ?0m0.356s
sys ? ? 0m2.672s
You have new mail in /var/spool/mail/root


3 copy以及chown
PS:磁盤空間不足,所以不能執行copyback,直接MV了。
mv /home/alldb/* /data/xxxx/open/?
chown -R mysql.mysql /data/xxxx/open/


4 啟動 service mysqld start
用5.5.20的mysql啟動報錯如下:
121221 10:40:36 mysqld_safe Starting mysqld daemon with databases from /data/md/open
121221 10:40:36 [Note] Flashcache bypass: disabled
121221 10:40:36 [Note] Flashcache setup error is : ioctl failed


121221 10:40:36 InnoDB: The InnoDB memory heap is disabled
121221 10:40:36 InnoDB: Mutexes and rw_locks use GCC atomic builtins
121221 10:40:36 InnoDB: Compressed tables use zlib 1.2.3
121221 10:40:36 InnoDB: Initializing buffer pool, size = 4.9G
121221 10:40:37 InnoDB: Completed initialization of buffer pool
121221 10:40:37 InnoDB: Error: data file /data/md/open/ibdata2 uses page size 1024,
121221 10:40:37 InnoDB: but the only supported page size in this release is=16384
121221 10:40:37 InnoDB: Could not open or create data files.
121221 10:40:37 InnoDB: If you tried to add new data files, and it failed here,
121221 10:40:37 InnoDB: you should now edit innodb_data_file_path in my.cnf back
121221 10:40:37 InnoDB: to what it was, and remove the new ibdata files InnoDB created
121221 10:40:37 InnoDB: in this failed attempt. InnoDB only wrote those files full of
121221 10:40:37 InnoDB: zeros, but did not yet use them in any way. But be careful: do not
121221 10:40:37 InnoDB: remove old data files which contain your precious data!
121221 10:40:37 [ERROR] Plugin 'InnoDB' init function returned error.
121221 10:40:37 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
121221 10:40:37 [ERROR] Unknown/unsupported storage engine: InnoDB
121221 10:40:37 [ERROR] Aborting


121221 10:40:37 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete


121221 10:40:37 mysqld_safe mysqld from pid file /data/md/open/test-db-20058.pid ended


5 google很久,看到說mysql升級到5.5的時候也報but the only supported page size in this release is=16384的錯誤,
于是就找原來版本5.1的安裝目錄,用mysqld_safe啟動,ok,搞定
sudo /usr/local/mysql-5.1.56/bin/mysqld_safe --basedir=/usr/local/mysql-5.1.56/ --datadir=/data/md/open --user=mysql &


6 mysql 登錄正常,驗證slave:


mysql> grant all on *.* to 'tim'@'%' identified by 'xxxxx';


mysql> change master to master_user='repl', master_password='xxx#@!xxxx', master_host='90.60.201.30', master_log_file='mysql-bin.000449',master_log_pos=831708136;


mysql> start slave;


mysql> show slave status\G;
*************************** 1. row ***************************
? ? ? ? ? ? ? ?Slave_IO_State:?
? ? ? ? ? ? ? ? ? Master_Host: 90.60.201.30
? ? ? ? ? ? ? ? ? Master_User: repl
? ? ? ? ? ? ? ? ? Master_Port: 3306
? ? ? ? ? ? ? ? Connect_Retry: 60
? ? ? ? ? ? ? Master_Log_File: mysql-bin.000449
? ? ? ? ? Read_Master_Log_Pos: 831708239
? ? ? ? ? ? ? ?Relay_Log_File: mb-bbs-db3-relay-bin.003261
? ? ? ? ? ? ? ? Relay_Log_Pos: 3914557
? ? ? ? Relay_Master_Log_File: mysql-bin.000449
? ? ? ? ? ? ?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:?
? ? ? ? ? ? ? ? ? ?Last_Errno: 0
? ? ? ? ? ? ? ? ? ?Last_Error:?
? ? ? ? ? ? ? ? ?Skip_Counter: 0
? ? ? ? ? Exec_Master_Log_Pos: 831708239
? ? ? ? ? ? ? Relay_Log_Space: 3940542
? ? ? ? ? ? ? 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: 0
Master_SSL_Verify_Server_Cert: No
? ? ? ? ? ? ? ? Last_IO_Errno: 0
? ? ? ? ? ? ? ? Last_IO_Error:?
? ? ? ? ? ? ? ?Last_SQL_Errno: 0
? ? ? ? ? ? ? ?Last_SQL_Error:?
1 row in set (0.00 sec)


ERROR:?
No query specified

利用Xtrabackup備份集合恢復一臺從庫的過程


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 一级毛片私人影院老司机 | 九草伊人 | 一区在线播放 | 国产成人91 | 欧美黑人xxxx猛牲大交 | 免费午夜理论不卡 | 五月天色婷婷综合 | 国产欧美日韩亚洲精品区2345 | 欧美成人影院在线观看三级 | 麻豆国产免费影片 | 午夜欧美 | 国产专区在线播放 | 伊人超碰 | 欧美日韩一区二区三在线 | 久草在线视频网 | 国产福利在线永久视频 | 2020国产精品视频免费 | 免费看黄网站在线 | 国产97人人超碰caoprom | 日韩欧美综合在线二区三区 | 人人爱天天做夜夜爽88 | 精品亚洲欧美高清不卡高清 | 26uuu在线观看 | 日本久久久久 | 91精品一区二区综合在线 | 美国黄色一级片 | 91精品一区二区三区久久久久久 | 色老师影院 | 欧美日日射 | 国产精品美女一区二区 | 欧美精品一区三区 | 久在线播放 | 亚州第一视频 | 天天干夜夜噜 | 人人人人人爽 | 欧美一区2区三区4区公司二百 | 99国产精品| jizz国产精品免费麻豆 | 免费av在线播放 | 日韩精品一区二区三区第95 | 欧美笫一页 |