Aug 10, 2017

How to Pass Parameters To MYSQL Query In Shell Script


If you only want to execute a single statement:
mysql -e "INSERT INTO user VALUES ('$USERNAME', password)

If you source a sql file: