Hi Guest 1 HomePage 1 Jobs 1 WalkIn 1Articles  

 :) Latest Topic
 


  

 
MySQL Create Database
Question Posted on 01 Apr 2025

Home >> Tutorial >> Node.js Tutorial >> MySQL Create Database


MySQL Create Database

Node.js MySQL Create Database


Here we will create a Database in Node.js and this database in MySQL

Creating a Database


Here to create a database in MySQL we use syntax "CREATE DATABASE" statment and below is the full code:-

Example


Create a database names "myTestdb":-


Node.js CreateDB

We save the code and name the file as "demoCreateDBMySQL.js" and run the file by below code


node demoCreateDBMySQL.js


And once we run above code we will get the below output:-


Connected!

Database created





Other Important Questions
Node.js File Structure
Parts of Node.js
Install Node.js Linux
Node.js First Example
Node.js Globals







 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |