项目作者: unamatasanatarai

项目描述 :
Nodejs with express and mysql
高级语言: JavaScript
项目地址: git://github.com/unamatasanatarai/nodejs-mysql-tutorial-routing.git


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;)