当前位置:网站首页>mysql数据库备份和恢复
mysql数据库备份和恢复
2022-07-25 06:04:00 【yemuxiaweiliang】
从远程数据库备份
mysqldump -h x.x.x.x -uroot -p密码 --default-character-set=utf8 --all-databases > D:\bak\test.sql
恢复到本地
mysql -h localhost -u root -p123 --default-character-set=utf8 < D:\bak\test.sql
远程登录
mysql.exe -h x.x.x.x -uroot -p密码
问题记录
如果使用windows10的powershell窗口进行备份恢复可能会遇到各种各样的问题,例如备份文件中汉字出现乱码,恢复时无法识别特殊符合等。建议使用dos窗口进行操作。
边栏推荐
- CCID released the "Lake warehouse integrated technology research report", and Jushan database was selected as a typical representative of domestic enterprises
- Context must be a dict rater solution
- Introduction summary of using unirx in unity
- Era5 dataset description
- Softing pnGate系列网关:将PROFIBUS总线集成到PROFINET网络
- PMP Exam is easy to confuse concept discrimination skills! Don't lose points after reading!
- Singing "Seven Mile fragrance" askew -- pay tribute to Jay
- (14)[驱动开发]配置环境 VS2019 + WDK10 写 xp驱动
- Adaptation dynamics | in June, sequoiadb completed mutual certification with five products
- (Niuke multi school I in 2022) i-chiitoitsu (expected DP)
猜你喜欢

Sword finger offer 45. arrange the array into the smallest number

Working principle and precautions of bubble water level gauge

"Everyday Mathematics" serial 61: March 1

Amazoncaptcha bypasses Amazon IP verification code with 95% success rate

Ffmpeg notes (I) fundamentals of audio and video

Promise implementation

Why is it that all the games are pseudorandom and can't make true random?

HTB-Arctic

(2022 Niuke multi School II) k-link with bracket sequence I (dynamic planning)

ROI pooling and ROI align
随机推荐
sqlilabs less-29
Softing pngate series gateway: integrate PROFIBUS bus into PROFINET network
Calculate BDP value and wnd value
(牛客多校二)J-Link with Arithmetic Progression(最小二乘法/三分)
(16) [system call] track system call (3 rings)
Codeforces Round #809 (Div. 2)
Run length test of R language: use the runs.test function to perform run length test on binary sequence data (check whether the sequence is random)
msys2常用配置
2020ICPC 江西省赛热身赛 E.Robot Sends Red Packets(dfs)
CCID released the "Lake warehouse integrated technology research report", and Jushan database was selected as a typical representative of domestic enterprises
Base64 (conversion between string and Base64 string)
HTB-Optimum
For data security reasons, the Dutch Ministry of Education asked schools to suspend the use of Chrome browser
Concepts of phase velocity and phase in transmission line theory
Bug --- redis deserialization failed
(牛客多校二)G-Link with Monotonic Subsequence(构造题)
Vim配置Golang开发环境
ROI pooling and ROI align
Common methods of JS operation array
New developments in Data Governance: what is the impact of the EU's Data Governance Research Report on China