I am trying create a database in mysql database from separate .sql file and passing database name as variable.I am creating database from file to create tenant (separate database) and insert credentials to the Credentials table.
select @name := 'xxxxxx'; //admin will enter name here
create database @name;//here it is not creating a database