This is a very simple bash script to execute some sql files to mysql database and output results to text files.
- Put the all files in your directory.
- Add execute permission to bin/execmysql.sh.
- Modify Configurations (mysql username password etc..)in bin/execmysql.sh.
- Create your sql files to execute in sql/ directory.
- Run bin/execmysql.sh.
- You will get some output file in output/ directory.