Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

mysqldump

# Syntax
mysqldump -u [username] -p [database-to-dump] > [database-to-receive]

# Pipe it! Exporting DB from external host
mysqldump -u [username] -P [port] -h [host] [database-to-dump] | mysql -u root -h 127.0.0.1 [database-to-receive]

# Export specific tables by typing the name after the targeted DB
mysqldump -u [username] -P [port] -h [host] [database-to-dump] [tabl1] [table2] [table3] | mysql -u root -h 127.0.0.1 [database-to-receive]
Comment

mysqldump database

#To export single database
mysqldump -h [server] -u [user] -p [database_name]  | gzip > [filename].gz
Comment

install mysqldump

# Mysql
sudo apt-get install mysql-client
# MariaDB
sudo apt-get install mariadb-clients
Comment

mysqldump cli

/etc/init.d/nginx start
Comment

mysqldump

mysqldump -u [username] -p [database-to-dump] > filename(e.g. dump.sql)

# or 
sudo mysql database_name > filename
Comment

mysqldump

mysqldump -u [username] -p [database-to-dump] > [database-to-receive].sql
Comment

mysqldump cli command

Press CTRL+C to copy shell> mysqldump --databases db1 db2 db3 > dump.sql
Comment

PREVIOUS NEXT
Code Example
Shell :: git diff files only 
Shell :: compare repositories github 
Shell :: yarn uninstall 
Shell :: command line history search 
Shell :: ubuntu iptables add rule 
Shell :: powershell type of object 
Shell :: how to pull from specific branch 
Shell :: mkdir -p option 
Shell :: move file in terminal 
Shell :: git config set email 
Shell :: ssh current directory 
Shell :: bash how to use xargs 
Shell :: Jenkins ssh credentials in pipeline 
Shell :: Command to create a new Vue app 
Shell :: mate on ubuntu 20.04 
Shell :: find exclude directories 
Shell :: awk delimiter comma 
Shell :: centos monitor network traffic 
Shell :: list of created ssh port forwarding 
Shell :: git pull a specific sha 
Shell :: ffmpeg extract single frame 
Shell :: teams ubuntu 
Shell :: how to deploy heroku app 
Shell :: rebase branch github 
Shell :: getcomposer.org download 
Shell :: E: Unable to locate package libclang-cpp-dev 
Shell :: conda install django-cors-headers 
Shell :: command used to install django cms 
Shell :: how to update kali linux 2022 
Shell :: uninstall R 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =