I'm looking for something like createdb in PostgreSQL or any other solution that would allow me to create database with a help of a shell command. Any hints?
You mean while the mysql environment?
create database testdb;
Or directly from command line:
mysql -u root -e "create database testdb";