[root@test-200 bin]# cd /home/datax-web-2.1.2/bin/db # 拷贝sql文件到mysql容器中导入数据 [root@test-200 db]# docker cp datax_web.sql mysql_datax:/root Successfully copied 21.5kB to mysql_datax:/root
# 导入数据 [root@test-200 bin]# docker exec -it mysql_datax bash bash-4.2# mysql -udatax -p123456 datax_web < /root/datax_web.sql mysql: [Warning] Using a password on the command line interface can be insecure. bash-4.2# exit exit