Skip to content

Commit

Permalink
Merge pull request #588 from shutterstock/fix/mysql2-can-use-other-port
Browse files Browse the repository at this point in the history
Allow mysql2 to use a non-default port
  • Loading branch information
tgriesser committed Apr 22, 2015
2 parents cd3e34c + e749fef commit f662bca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dialects/mysql2/index.js
Expand Up @@ -8,7 +8,7 @@ var _ = require('lodash');
var Client_MySQL = require('../mysql');
var Promise = require('../../promise');

var configOptions = ['user', 'database', 'host', 'password', 'ssl', 'connection', 'stream'];
var configOptions = ['user', 'database', 'host', 'password', 'port', 'ssl', 'connection', 'stream'];

var mysql2;

Expand Down
5 changes: 5 additions & 0 deletions test/index.js
Expand Up @@ -31,6 +31,11 @@ var clients = {
name: 'mysql',
client: knex({client: 'mysql'}).client,
},
mysql2: {
name: 'mysql2',
client: knex({client: 'mysql2'}).client,
alias: 'mysql'
},
sqlite3: {
name: 'sqlite3',
client: knex({client: 'sqlite3'}).client
Expand Down

0 comments on commit f662bca

Please sign in to comment.