This is a very simple bash script to execute some sql files to mysql database and output results to text files.
Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
output
sql
README.md

README.md

execmysql

This is a very simple bash script to execute some sql files to mysql database and output results to text files.

Usage

  • 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.