I'm trying to create a MySQL database using a variable in a BASH script. Here is the code giving me trouble: database="mysql --verbose --user=root --password --execute="create database foo"" When run it fails with an option listing. I'm sure the issue is with the use of quotes after the execute option but I can't figure out how to get it to work.
database="... --execute='create database foo'"