Monthly Archive: November 2013

Search through all files in linux 0

Search through all files in linux

Find files in linux   Solution using GREP $> grep -ilR 'edma3' /usr/local/ti/* -i == ignore case -R == recursive directories Another often used command for developers $> grep --include=\*.{c,cpp,h} -rnw 'directory' -e "pattern"...

Completely wipe out mysql-server in CentOS 0

Completely wipe out mysql-server in CentOS

$> sudo yum remove mysql-server $> sudo rm -fr /var/lib/mysql Everything is gone!! Users, privileges, databases cleared. Note: the /var/lib/mysql folder will be refurnished on the next time you run sudo service mysqld start

Install mysql on CentOS 6.4 0

Install mysql on CentOS 6.4

Initial install $> sudo yum install mysql-client mysql-server $> sudo service mysqld start $> sudo chkconfig mysqld on Set a root password (optional) $> /usr/bin/mysqladmin -u root password 'new-password' Uninstall mysql completely including databases...