>I just wanted to know what would be the easiest way to retrieve simple data >from a MySQL database from a bash script.
Easiest way I've used to do it is:
mysql <<EOQ
select count(1) from tables;
EOQ
Which allows you to feed random queries to mysql from a bash script.
Brad Eacker ([EMAIL PROTECTED])
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]
