Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker mysql import dump to database

docker exec -i mysql_container mysql -h127.0.0.1 -uroot -psecret mysql < db.sql
Comment

dump database docker

docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
Comment

PREVIOUS NEXT
Code Example
Shell :: convert cer to crt linux mint 
Shell :: migrate has no installation candidate 
Shell :: The following packages have unmet dependencies: nginx : Depends: libssl1.0.0 (= 1.0.2~beta3) 
Shell :: chmod: Unable to change file mode Operation not permitted 
Shell :: docker run container in background 
Shell :: starting nodemon server 
Shell :: mac address in linux 
Shell :: adb screen record 
Shell :: change owner of directory mac terminal 
Shell :: logrotate force rotation 
Shell :: java to jar 
Shell :: docker wordpress 
Shell :: how to delete directory 
Shell :: base64 encode linux 
Shell :: subl command not found mac 
Shell :: node js TypeError [ERR_INVALID_ARG_TYPE]: The argument must be of type string. Received undefined 
Shell :: docker redis 
Shell :: install alacritty 
Shell :: install formik 
Shell :: git archive 
Shell :: how to run bash scripts 
Shell :: git: create and remove git alias command 
Shell :: npm dotenv 
Shell :: linux print system info 
Shell :: link local to remote git 
Shell :: install aws cli v2 mac 
Shell :: git remove files from old commits 
Shell :: how to add images to git readme 
Shell :: git set upstream repository 
Shell :: how to push another account git 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =