Passing MySQL Commands from Shell Script
Posted: Tue Sep 08, 2009 3:15 am
Running MySQL commands from a shell script is a relatively simple task that has a lot of people baffled. Some say its too complicated and suggest using PHP or Perl, others claim doing so is a security risk (a favorite excuse of the ignorant), and some resort to using a shell script to writing SQL commands to a text file that MySQL would use as input. Below is a much more simple and direct way of generating and running complex SQL queries directly from a shell script without temporary files and without any security issues...
Read more: http://www.krazyworks.com/passing-mysql ... ll-script/
Read more: http://www.krazyworks.com/passing-mysql ... ll-script/