Sep 19, 2018

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: