I need to make several queries to MySql database. My question is the following:
- Do I add the following in a file and then execute the file:
echo “Check ”
mysql -h 192.168.100.1 -t -u umane -pass tablename
< query.sql
echo “Check “
mysql -h 192.168.100.1 -t -u umane
-pass tablename < query2.sql
echo “Check “
mysql -h
192.168.100.1 -t -u umane -pass tablename < query3.sql
echo
“Check “
mysql -h 192.168.100.1 -t -u umane -pass tablename <
query4.sql
- Or I create a single “query.sql” file that contains all the sql querys. If so, can I in any way echo the “Check” statments somehow?
1 Answer