I\'m trying to make a bash script that creates a mysql user and database but I can\'t find a way to feed the sql into mysql, I\'m trying with this format:
my
mysql --batch --silent -e 'SHOW TABLES';
Batch and silent are handy if you are planning to pipe the output