+ 2

How to create a database in JavaScript ?

Hi guys, I want to create a simple database using Javascript . Can anyone help me .

1st Jul 2018, 4:10 AM
Soumyajit Chand
Soumyajit Chand - avatar
8 Antworten
+ 2
As you are talking about database, Database are created using SQl query on phpmyadmin or on SQlite , PHP,node help SQL query to run on server and create specific type of database, And if you want to learn server side language then highly recommend is pHp , Easy to write, read and faster.
1st Jul 2018, 5:02 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 4
and you need a web server
1st Jul 2018, 4:44 AM
Calviղ
Calviղ - avatar
+ 3
Javascript that run on client cannot create database due to security concerns. Unless you use Nodejs on server.
1st Jul 2018, 4:14 AM
Calviղ
Calviղ - avatar
+ 3
You can use javascript in node js to create a database.
1st Jul 2018, 4:37 AM
Frank Abagnale
Frank Abagnale - avatar
+ 3
1st Jul 2018, 4:56 AM
Soumyajit Chand
Soumyajit Chand - avatar
+ 2
Oh ! So I have to use node.js
1st Jul 2018, 4:43 AM
Soumyajit Chand
Soumyajit Chand - avatar
+ 2
1st Jul 2018, 6:01 AM
Soumyajit Chand
Soumyajit Chand - avatar
0
you can use nodejs to create a database connection with mysql . let mysql = require("mysql"); let con = mysql.createConnection({ host: "localhost", user: "root", password: "", multipleStatements: true, // this allow you to run multiple queries at once. });
8th May 2021, 12:46 PM
Jason Michel
Jason Michel  - avatar