Skip to content

Commit e4d4084

Browse files
Christian Fröhlingsdorfdougwilson
Christian Fröhlingsdorf
authored andcommitted
docs: add database option in connection examples
closes #1382
1 parent 76648c2 commit e4d4084

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Readme.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ var pool = mysql.createPool({
311311
connectionLimit : 10,
312312
host : 'example.org',
313313
user : 'bob',
314-
password : 'secret'
314+
password : 'secret',
315+
database : 'my_db'
315316
});
316317

317318
pool.query('SELECT 1 + 1 AS solution', function(err, rows, fields) {
@@ -329,7 +330,8 @@ var mysql = require('mysql');
329330
var pool = mysql.createPool({
330331
host : 'example.org',
331332
user : 'bob',
332-
password : 'secret'
333+
password : 'secret',
334+
database : 'my_db'
333335
});
334336

335337
pool.getConnection(function(err, connection) {

0 commit comments

Comments
 (0)