Skip to content

Commit 4ea1627

Browse files
committed
Added Charset To README & Examples
1 parent 3e6d407 commit 4ea1627

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ async function run(){
5858
port: '3306', // the default is 3306
5959
user: 'root',
6060
password: '',
61-
database: 'my_database'
61+
database: 'my_database',
62+
charset: 'utf8mb4'
6263
});
6364

6465
// database connected event

examples/example.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ async function run(){
88
port: '3306', // the default is 3306
99
user: 'root',
1010
password: '',
11-
database: 'my_database'
11+
database: 'my_database',
12+
charset: 'utf8mb4'
1213
});
1314

1415
db.on('connected', function(connection){ // database connected event

0 commit comments

Comments
 (0)