首先應認真看下阿里雲官方文件:rds mysql 物理備份檔案恢復到自建資料庫
本人實踐的資料庫版本是5.6,恢復資料的ubuntu版本是14.04和16.04兩個版本,這兩個版本預設資料庫都不是5.6,需要單獨安裝;另外
2.3.7
apt-get install software-properties-common
sudo add-apt-repository 'deb trusty universe'
sudo apt-get update
sudo apt install mysql-server-5.6
前面步驟如阿里雲官方文件所示即可,但是在恢復資料庫時遇到了問題
setenforce 0
/root/mysql/data/ r,
/root/mysql/data/** rwk,
## 增加資料目錄許可權即可,如果安裝了5.6.36可能要調整配置檔案目錄許可權,看錯誤提示操作即可
/etc/mysql/mysql.conf.d/ r,
/etc/mysql/mysql.conf.d/* r,
在啟動過程中,可能會遇到某些未知問題,可以通過新增innodb_force_recovery = 6
引數來嘗試修復,如果仍然出現下面錯誤,請公升級mysql版本:
這個問題,在mysql後續版本中解決掉了,保證你的mysql版本在5.6.36+以上,我是公升級到5.6.44解決的問題it is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 338332 k bytes of memory
hope that's ok; if not, decrease some variables in the equation.
thread pointer: 0x0
attempting backtrace. you can use the following information to find out
where mysqld died. if you see no messages after this, something went
terribly wrong...
stack_bottom = 0 thread_stack 0x40000
之後啟動後,即可匯出相關資料即可!
阿里雲RDS資料本地恢復
阿里雲rds資料本地恢復。阿里雲 rds 資料庫在本地資料庫中恢復 將阿里雲 rds 的資料庫匯出的全量備份檔案 data.tar.gz 傳到本地 系統 centos6.2 mysql mysql 5.6.35 rds backup extract wget chmod x rds backup e...
阿里redis資料恢復到自建redis
執行匯入 redis port restore i dump.rdb t 192.169.10.20 6379 n 8 auth 密碼 redis port使用示例 redis port restore input x dump.rdb target dst host dst port auth d...
恢復阿里雲RDS的資料備份檔案到本地資料庫
mysql安裝不在贅述,主要與rds版本相同即可,percona xtrabackup安裝官方也提供了詳細的文件,按照步驟操作即可。本文採用centos7,不同linux系統可查閱相應的文件。系統版本 安裝percona xtrabackup 安裝依賴包 yum install 檢視依賴包 安裝pe...