File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,20 @@ the path to your mysql_config is /usr/local/bin/mysql_config make
13
13
sure to do the following (Ubuntu users need to install the
14
14
libmysqlclient-dev package):
15
15
16
+ ``` bash
16
17
$ export MYSQL_CONFIG=/usr/local/bin/mysql_config
18
+ ```
17
19
18
20
Once you are sure that either mysql_config is part of the path or that
19
21
you specified the MYSQL_CONFIG environment var, install with npm:
20
22
23
+ ``` bash
21
24
$ npm install db-mysql
25
+ ```
22
26
23
27
## QUICK START ##
24
28
29
+ ``` javascript
25
30
var mysql = require (' db-mysql' );
26
31
new mysql.Database ({
27
32
hostname: ' localhost' ,
@@ -40,6 +45,7 @@ you specified the MYSQL_CONFIG environment var, install with npm:
40
45
console .log (rows .length + ' ROWS' );
41
46
});
42
47
});
48
+ ```
43
49
44
50
## LICENSE ##
45
51
You can’t perform that action at this time.
0 commit comments