pour une solution SQL :


select schema_name
from information_schema.schemata
where schema_name = '$newbase' ;