当前位置:网站首页>[MySQL 06] backup and restore MySQL database in Linux + docker container environment
[MySQL 06] backup and restore MySQL database in Linux + docker container environment
2022-06-30 01:57:00 【Rusty well began】
1、 Back up the... In the container MySQL Complete database :
command : docker exec -it docker Container name mysqld -uroot -p Database password Database name > Backup filename .sql
eg: docker exec -it phoenix_mysql mysqldump -uroot -psiteweb1! phoenix > phoenix.sql

2、 Restore in container MySQL Complete database
<1> First create the target database
create database phoenix;
<2> Then move the backup file to the container
docker cp File path to copy Container name : To copy to the corresponding path in the container
docker cp phoenix.sql phoenix_mysql:/
<3> Then log in to the database , Restore database
mysql -uroot -p
use phoenix;
source /phoenix.sql;


边栏推荐
- win10子系统 WSL如果root和其他用户的密码都忘记的修复方法
- 8 — router
- [MySQL 04] sauvegarde et restauration de la base de données MySQL sous Linux en utilisant MySQL Workbench 8.0 ce
- 【二叉树】最大二叉树 II
- Embedded exit (review and release)
- C语言 换个格式输出整数
- [protection mode] segment descriptor
- C language continues (3n+1) conjecture
- 【PyTorch实战】生成对抗网络GAN:生成动漫人物头像
- [mrctf2020]ezpop-1 | PHP serialization
猜你喜欢
![[pytorch actual combat] generate confrontation network Gan: generate cartoon character avatars](/img/8f/c0cc1c8d19060a60d92c0d72f8b93d.png)
[pytorch actual combat] generate confrontation network Gan: generate cartoon character avatars

【MySQL 04】使用MySQL Workbench 8.0 CE 备份及恢复Linux中的MySQL数据库

C语言 素数对猜想

Unity2D--给动画添加关键帧并绑定事件
![[MySQL 04] use MySQL workbench 8.0 CE to back up and restore MySQL databases in Linux](/img/e7/fc2925a10ac5fb370dd221c3f4a46a.png)
[MySQL 04] use MySQL workbench 8.0 CE to back up and restore MySQL databases in Linux

ES6 one line code for array de duplication

C language continues (3n+1) conjecture

Using grpcui to test asp Net core grpc service

Cookie encryption 12

C语言 换个格式输出整数
随机推荐
Using grpcui to test asp Net core grpc service
Cookie encryption 13
【图神经网络】图分类学习研究综述[2]:基于图神经网络的图分类
Cookie encryption 9
MySQL monitoring
Varnish foundation overview 7
DTW学习(dynamic time warping)——思想、代码实现
什么是幂等性?四种接口幂等性方案详解!
[machine learning Q & A] accuracy, accuracy, recall, ROC and AUC
Varnish foundation overview 8
js Array.from()的5个便捷应用
Unity2d-- add keys to animation and bind events
Varnish foundation overview 3
Simple implementation of unity object pool
图解 Google V8 # 19 :异步编程(二):V8 是如何实现 async/await 的?
假离婚变成真离婚,财产怎么办
Using face_ Recognition library reports an error reason: cudnn_ STATUS_ NOT_ SUPPORTED
What should I do when I feel confused after graduation from university?
Summary of DOM
[MySQL 04] sauvegarde et restauration de la base de données MySQL sous Linux en utilisant MySQL Workbench 8.0 ce