16 #ifndef SQL_DB_INCLUDED
17 #define SQL_DB_INCLUDED
26 int mysql_create_db(THD *thd,
char *db,
HA_CREATE_INFO *create,
bool silent);
27 bool mysql_alter_db(THD *thd,
const char *db,
HA_CREATE_INFO *create);
28 bool mysql_rm_db(THD *thd,
char *db,
bool if_exists,
bool silent);
29 bool mysql_upgrade_db(THD *thd,
LEX_STRING *old_db);
30 bool mysql_change_db(THD *thd,
const LEX_STRING *new_db_name,
33 bool mysql_opt_change_db(THD *thd,
37 bool *cur_db_changed);
38 bool my_dboptions_cache_init(
void);
39 void my_dboptions_cache_free(
void);
40 bool check_db_dir_existence(
const char *db_name);
41 bool load_db_opt(THD *thd,
const char *path,
HA_CREATE_INFO *create);
42 bool load_db_opt_by_name(THD *thd,
const char *db_name,
44 const CHARSET_INFO *get_default_db_collation(THD *thd,
const char *db_name);
45 bool my_dbopt_init(
void);
46 void my_dbopt_cleanup(
void);
48 #define MY_DB_OPT_FILE "db.opt"