Skip to content

unamatasanatarai/nodejs-mysql-tutorial-routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node.js playground with mysql

docker run --name mysql -e MYSQL_ROOT_PASSWORD=pass -p 3306:3306 mysql:5

.then(npm install)

.then(docker exec -it mysql mysql -uroot -ppass)

.then(create database tutorial;)

.then(node setup.js)

.then(node index.js)

.then(navigate to: http://localhost:8080)


to connect to the mysql run: docker exec -it mysql mysql -uroot -ppass

.then(use tutorial;)

.then(select count(id) from hello;)