Skip to content

Commit

Permalink
docs: add database option in connection examples
Browse files Browse the repository at this point in the history
closes #1382
  • Loading branch information
Christian Fröhlingsdorf authored and dougwilson committed May 8, 2016
1 parent 76648c2 commit e4d4084
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Readme.md
Expand Up @@ -311,7 +311,8 @@ var pool = mysql.createPool({
connectionLimit : 10,
host : 'example.org',
user : 'bob',
password : 'secret'
password : 'secret',
database : 'my_db'
});

pool.query('SELECT 1 + 1 AS solution', function(err, rows, fields) {
Expand All @@ -329,7 +330,8 @@ var mysql = require('mysql');
var pool = mysql.createPool({
host : 'example.org',
user : 'bob',
password : 'secret'
password : 'secret',
database : 'my_db'
});

pool.getConnection(function(err, connection) {
Expand Down

0 comments on commit e4d4084

Please sign in to comment.