diff --git a/lib/adapters/mysql.js b/lib/adapters/mysql.js index fa31bdcc..2b22271d 100644 --- a/lib/adapters/mysql.js +++ b/lib/adapters/mysql.js @@ -21,7 +21,7 @@ exports.initialize = function initializeSchema(schema, callback) { schema.adapter = new MySQL(schema.client); schema.adapter.schema = schema; // schema.client.query('SET TIME_ZONE = "+04:00"', callback); - schema.client.query('USE ' + s.database, function (err) { + schema.client.query('USE `' + s.database + '`', function (err) { if (err && err.message.match(/^unknown database/i)) { var dbName = s.database; schema.client.query('CREATE DATABASE ' + dbName, function (error) {