isUserType('grant'); $is_createuser = $dbi->isUserType('create'); // now, select the mysql db if ($dbi->isSuperuser()) { $dbi->selectDb('mysql'); }