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/
Passing MySQL Commands from Shell Script
Who is online
Users browsing this forum: No registered users and 3 guests