I found my own solution, so I'm going to answer my question if anyone is interested.
@outis you're right, it is impossible to use a variable with a command USE.
However, due to the fact that I want to create a table in the database specified at runtime, my solution would be to use dynamic SQL:
set @schema="testDB";
set @front="CREATE TABLE IF NOT EXISTS ";
set @endpart=".`TEST1` (DIM_ID INT(16)) ENGINE = InnoDB DEFAULT CHARACTER SET = utf8 COLLATE = utf8_unicode_ci;";
set @stat=concat(@front,@schema,@endpart);
prepare command from @stat;
execute command;
, , .
@schema script. , create.