Posted On March 28, 2019

mysqldump & gunzip

kimconnect 0 comments
blog.KimConnect.com >> Database , Linux >> mysqldump & gunzip
Create SQL Dump:
# Higher compression if bzip2 is installed on the system
# mysqldump -uwebadmin -p –all-databases | bzip2 > kimconnect.sql.bz2
mysqldump -uwebadmin -p –all-databases | gzip > kimconnect.sql.gz
 
Uncompress and import:
# If compressed by bzip2
# bunzip2 < kimconnect.sql.bz2 | mysql -uwebadmin -p
gunzip < kimconnect.sql.gz | mysql -uwebadmin -p

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

How to Install OpenDNS Client on Ubuntu

Install the dynamic IP updater: # Install the appsudo apt-get install ddclient Press Enter repeatedly…

How To Install Remote Desktop on Ubuntu or Centos 7

Ubuntu:sudo apt-get updatesudo apt-get install xrdp xfce4echo xfce4-session >~/.xsessionsudo service xrdp restartCentOS 7:su -vim /etc/yum.repos.d/xrdp.repo-----…

Adding Repositories in Centos 5.3

yum install yum-priorities vim /etc/yum/pluginconf.d/priorities.conf ---- [main] enabled=1 ----   Install RPMForge: cd /home wget…