Skip to content

Commit f564c06

Browse files
committed
NodeJS - MySQL
1 parent 459c0e4 commit f564c06

File tree

4 files changed

+196
-0
lines changed

4 files changed

+196
-0
lines changed

nodejs-basics/package-lock.json

+63
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodejs-mysql/.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
8+
# dependencies
9+
/node_modules
10+
11+
# profiling files
12+
chrome-profiler-events.json
13+
speed-measure-plugin.json
14+
15+
# IDEs and editors
16+
/.idea
17+
.project
18+
.classpath
19+
.c9/
20+
*.launch
21+
.settings/
22+
*.sublime-workspace
23+
24+
# IDE - VSCode
25+
.vscode/*
26+
!.vscode/settings.json
27+
!.vscode/tasks.json
28+
!.vscode/launch.json
29+
!.vscode/extensions.json
30+
31+
# misc
32+
/.sass-cache
33+
/connect.lock
34+
/coverage
35+
/libpeerconnection.log
36+
npm-debug.log
37+
yarn-error.log
38+
testem.log
39+
/typings
40+
41+
# System Files
42+
.DS_Store
43+
Thumbs.db

nodejs-mysql/connection.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var mysql = require('mysql');
2+
3+
var con = mysql.createConnection({
4+
host: "localhost",
5+
user: "root",
6+
password: "root"
7+
});
8+
con.connect(function(err) {
9+
if (err) throw err;
10+
console.log("Connected!");
11+
});

nodejs-mysql/package-lock.json

+79
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)