I have a MySQL script file named query1.sql which contains:
query1.sql
select * FROM $(tblName) LIMIT 10;
I am in MySQL console, how do I
The command line call from vidyadhar worked for me, but only with a small modification :
mysql -u root -p -e"set @temp=1; `cat /home/mysql/Desktop/a.sql`"