How do I issue commands to MariaDB via the CLI without actually jumping into the interactive use mode?
I know I can type mysql
which will then jump me into the interactive mode where I can write SQL commands like CREATE DATABASE dbname;
and then exit to go back to the regular terminal.
However I'd like to skip that and do something like mysql 'CREATE DATABASE dbname;'
all in one line.