java
[!NOTE|label:references:]
others
import data to sql and print process
$ (pv -n ~/database.sql | mysql -u root -pPASSWORD -D database_name) 2>&1 | zenity --width 550 --progress --auto-close --auto-kill --title "Im
get the cnf file location for mysql
$ mysql - ? | grep ".cnf" -C 1
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf
The following groups are read: mysql client
get the git change from .git/objects
$ find .git/objects -type f -printf "%P\n" | sed s,/,, | while read object; do
echo "=== $obj $(git cat-file -t $object) ==="
git cat-file -p $object
done