diff --git a/lib/Standard_ProxySQL_Admin.cpp b/lib/Standard_ProxySQL_Admin.cpp index 15f3f34a7..e969eb3a2 100644 --- a/lib/Standard_ProxySQL_Admin.cpp +++ b/lib/Standard_ProxySQL_Admin.cpp @@ -965,6 +965,13 @@ void admin_session_handler(MySQL_Session *sess, ProxySQL_Admin *pa, PtrSize_t *p goto __run_query; } + if (query_no_space_length==strlen("SHOW DATABASES") && !strncasecmp("SHOW DATABASES",query_no_space, query_no_space_length)) { + l_free(query_length,query); + query=l_strdup("PRAGMA DATABASE_LIST"); + query_length=strlen(query)+1; + goto __run_query; + } + if (sess->stats==true) { if ( (strncasecmp("PRAGMA",query_no_space,6)==0)