database names are loaded
database names are loaded
This commit is contained in:
@ -199,6 +199,8 @@ GWPROTOCOL *funcs;
|
|||||||
}
|
}
|
||||||
if (strcmp(port->protocol, "MySQLClient") == 0) {
|
if (strcmp(port->protocol, "MySQLClient") == 0) {
|
||||||
int loaded;
|
int loaded;
|
||||||
|
int dbnames_loaded;
|
||||||
|
|
||||||
/* Allocate specific data for MySQL users */
|
/* Allocate specific data for MySQL users */
|
||||||
service->users = mysql_users_alloc();
|
service->users = mysql_users_alloc();
|
||||||
loaded = load_mysql_users(service);
|
loaded = load_mysql_users(service);
|
||||||
@ -213,6 +215,14 @@ GWPROTOCOL *funcs;
|
|||||||
LOGFILE_MESSAGE,
|
LOGFILE_MESSAGE,
|
||||||
"Loaded %d MySQL Users.",
|
"Loaded %d MySQL Users.",
|
||||||
loaded)));
|
loaded)));
|
||||||
|
|
||||||
|
/* load all mysql database names */
|
||||||
|
dbnames_loaded = mysql_users_load_dbs(service);
|
||||||
|
|
||||||
|
LOGIF(LM, (skygw_log_write(
|
||||||
|
LOGFILE_MESSAGE,
|
||||||
|
"Loaded %d MySQL Databases.",
|
||||||
|
dbnames_loaded)));
|
||||||
} else {
|
} else {
|
||||||
/* Generic users table */
|
/* Generic users table */
|
||||||
service->users = users_alloc();
|
service->users = users_alloc();
|
||||||
|
Reference in New Issue
Block a user