Permalink
Browse files

edited mysql client creation so that it works with mysql >= 0.9.5

  • Loading branch information...
1 parent efda595 commit 48b96662735a982dce0edb6072375a045e82677a @philippkueng philippkueng committed Jun 10, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 migrate.js
View
@@ -807,10 +807,7 @@ function main() {
var Connect = {
mysql: function() {
// Create the client
- client = new require('mysql').Client(config.mysql);
-
- // Attempt to connect to the db
- client.connect();
+ client = new require('mysql').createClient(config.mysql);
client.query("show tables;", function(err, result, fields) {
if (err)

0 comments on commit 48b9666

Please sign in to comment.