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

Linux: How to set a static IP address

Set Static IP Address ---- vim /etc/sysconfig/networking/profiles/default/ifcfg-eth0 vim /etc/sysconfig/network-scripts/ifcfg-eth0 ---- DEVICE=eth0 BOOTPROTO=none HWADDR=00:0C:29:d7:5b:d3 ONBOOT=yes TYPE=Ethernet…

How to Migrate a Database to a Newer Version of Microsoft SQL Server

Get Version of new SQL server Create a sql-dump script on the old SQL server:…

Dynamics NFS Provisioning in Kubernetes Cluster

Step 1: Creating NFS Server A. Create NFS Share on File ServerThere are many ways…
Other project: DragonCoin.com