How to create a mysqldump client based on docker to export the contents of a specific database
How to create a mysqldump client based on docker to export the contents of a specific database Dumping the database structure for all table with no data docker run -it --rm \ mysql:5.7.28 \ mysqldump \ --host=192.168.1.131 \ --port=3306 \ --no-data \ --databases nacos \ --user=root \ --password=Gah6kuP7ohfio4 > nacos.sql Dumping the database structure for all table with with data docker run -it --rm \ mysql:5.7.28 \ mysqldump \ --host=192.168.1.131 \ --port=3306 \ --databases nacos \ --user=root \ --password=Gah6kuP7ohfio4 > nacos.sql 来源: oschina 链接: https://my.oschina.net/qwfys200/blog