![]() ![]() Here we are calling connect function on the connection variable which we have created already. Line 16-Line 23: Now in this section we are going to establishing a connection of application to the Mysql. Note: Mysql database has default port 3306 in a system.Ĭonst connection = mysql.createConnection() ![]() Line 6-Line 12: In this section we are creating connection variable and setting all theĬonfiguration of MySQL databases like a host, port, user, password and database. Let’s understand the code flow of the server.js file in the project folder: Line 2: By using this line of code we are importing the mysql module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |