An Entrepreneur, Coach, IT Consultant, Strategic Adviser, and a Traveler craving to explore and contribute to forming a better society.

Friday, August 21, 2009

Shellscript MySQL

No comments :
Shellscript MySQL



Executing a mysql query from shellscript

There is an option mysql provides to execute the query from bash/sh shell without actually logging into the mysql control prompt

shell# ./mysql -u root -padmin@sak -e "show databases"

This will help us processing the data from within the shell script.

Thanks to "-e" option in mysql

Featured Blog Topics:


No comments :