I need to dump a table for daily transfer.
mysqldump requires LOCK TABLES privilege. Unfortunately, LOCK TABLES does not apply at the table level, only at the database level, and I don't want to give the MySQL user that much access. Is there a way to do something like ...
/usr/bin/mysql -uusername -ppassword -D daterbase -e "select * from table" > outfile.sql ... but have it output in SQL format instead of query result format?