0

I am new in web development, I don't much know about Databases. I want to know, will MySql work well with Node Js?

If anyone has experience with MySql and Node Js please share with me.

Thank You.

Akash Kanaujiya
  • 177
  • 1
  • 2
  • 10
  • Yes. Use the [mysql2](https://www.npmjs.com/package/mysql2) package and its [Promise wrapper](https://github.com/sidorares/node-mysql2/blob/master/documentation/Promise-Wrapper.md). – O. Jones Jun 21 '21 at 13:32

2 Answers2

2

Of course it does work well with nodejs.

You can use mysql2 package if you want to write plain sql code or you can use sequelize to work with relational databases in a nosql way.

h-sifat
  • 1,455
  • 3
  • 19
1

You can use MySQL with NodeJS without any problems. Like you said you are new in web development so you can use sequelize library for database operations. sequelize is a library that facilitates database operations.

GreXLin85
  • 97
  • 1
  • 10