Docker import (large) sql file
Permalink: http://www.ramonfincken.com/permalink/topic405.html
Rating : 3 / 5Rate this article (5 = best) 1 2 3 4 5
Tags:
cli ,
database ,
Docker ,
exec ,
import ,
inspect ,
mount ,
mountpoint ,
mysql ,
ps ,
sql
View previous topic
::
View next topic
Author
Message
ramon fincken Site's programmerGet a free globally recognized avatar It's free! Joined: 03 Aug 2007 Posts: 412 Location: A'dam/Diemen, The Netherlands
Posted: Thu Feb 04, 2016 1:35 pm Post subject: Docker import (large) sql file
run your mysql docker container
copy the mysql ID
Note the mount source
Note the mount destination
Put your sql dump in the mountpath (superuser)
Login in your docker container
Code: docker exec -i -t ID bash
Visit the mount partition
run your mysql import CLI command as usual
exit and remove your file
Back to top
Google adsense Advertisement
Posted: Thu Feb 04, 2016 1:35 pm Post subject: Docker import (large) sql file
Advertisement
Back to top
GravityForms Advertisement
Posted: Thu Feb 04, 2016 1:35 pm Post subject: Docker import (large) sql file
Advertisement
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum