From 1e8c9b3c13c2eb4db5b3531823a966fd0fba87b7 Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Tue, 17 Mar 2015 11:13:32 +0100 Subject: [PATCH] Fixed a issie with numeric mysql database names. --- server/plugins-available/mysql_clientdb_plugin.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins-available/mysql_clientdb_plugin.inc.php b/server/plugins-available/mysql_clientdb_plugin.inc.php index 6145db00c7..146e17a2ec 100644 --- a/server/plugins-available/mysql_clientdb_plugin.inc.php +++ b/server/plugins-available/mysql_clientdb_plugin.inc.php @@ -195,7 +195,7 @@ class mysql_clientdb_plugin { } //* Create the new database - if ($link->query('CREATE DATABASE '.$link->escape_string($data['new']['database_name']).$query_charset_table)) { + if ($link->query('CREATE DATABASE `'.$link->escape_string($data['new']['database_name']).'`'.$query_charset_table)) { $app->log('Created MySQL database: '.$data['new']['database_name'], LOGLEVEL_DEBUG); } else { $app->log('Unable to create the database: '.$link->error, LOGLEVEL_WARNING); -- GitLab