Elliot Alderson twitter thread on Aadhaar Android App

partial table dump using mysqldump

There are times when you only want to take partial dump of a mysql table. You can use mysqldump command with one extra option “–where”. You will have to provide your where clause (partial dump condition) in the “–” where option.

Below is the command to take a partial dump of a table.

mysqldump -u [username] -p  [databasename] [mytablename] --where  " mycolumn = 'somevalue' " > filename.sql

Related Posts:
1. MySQL dump in XML format.
2. MySQL general query logs.

Developer gets honest

 

Install Go 1.8 on Fedora / Ubuntu

You can follow below steps to install Go 1.8 on Fedora / Ubuntu. (It should work for other Linux distribution as well but it is only tested for Ubuntu / Fedora).

Step 1:

Download the Go 1.8 bundle by clicking here.

Step 2:

Extract the downloaded bundle using below command,

tar -C /usr/local -xzf go1.8.linux-amd64.tar.gz 

Step 3:

Add below to your to your path variable, you can add this to either of bash_profile or /etc/profile.

export PATH=$PATH:/usr/local/go/bin

Reload the configuration & GO will be available to use.