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…

Linux: How to Find USB Thumb Drive via CLI

0. Trigger SCSI Device Scans # Scan all SCSI host controllers # If a new…

PowerShell: Maintain Linux Services via SSH Remoting

Version 2: # maintainLinuxServices.ps1 # Version 0.0.2 # Description: this is a simple script to…