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
Have you tried mysql -e query?
mysql -e query