Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

import single table from mysql dump

# mysql dump from database name and table name
mysqldump --column-statistics=0 -h <hostanaem> -u <username> -p<password> --port 3306 <dbname> <table 1> <table 2> | gzip > mysql_dump.gz

# z Grep to only the table name that you want
# pipe the output to mysql
zgrep "^INSERT INTO `table_name" mysql_dump.gz | mysql -h <hostanaem> -u <username> -p<password> --port 3306 <dbname> <table name>
Comment

PREVIOUS NEXT
Code Example
Shell :: find number of files in a directory linux 
Shell :: git clone private repo 
Shell :: best code editor 
Shell :: cisco anyconnect download for ubuntu 18.04 
Shell :: install composer in ubuntu 
Shell :: remove file from commit 
Shell :: docker compose stdin_open 
Shell :: how to kill a service based on port number on mac 
Shell :: delete first two lines of file linux 
Shell :: xbox 360 wireless adapter linux 
Shell :: bash change user 
Shell :: linux unicode eingeben 
Shell :: linux make symlink 
Shell :: git repo example 
Shell :: warning: LF will be replaced by CRLF in [file_path] 
Shell :: verify hash windows 10 
Shell :: how to fork from github to bitbucket 
Shell :: display hidden files mac 
Shell :: sudo update-alternatives — install 
Shell :: sudo apt update not working 
Shell :: sed from match to other match 
Shell :: install biocmanager in rstudio 
Shell :: how to clear background jobs 
Shell :: kubectl apply 
Shell :: install owlready2 
Shell :: laravel install valet 
Shell :: conda install libglu1 
Shell :: bash function 
Shell :: remove ciso umbrella 
Shell :: The current application is not compatible with NativeScript CLI 8.0.2 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =