+ 2
How to create a database in JavaScript ?
Hi guys, I want to create a simple database using Javascript . Can anyone help me .
8 ответов
+ 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.
+ 4
and you need a web server
+ 3
Javascript that run on client cannot create database due to security concerns. Unless you use Nodejs on server.
+ 3
You can use javascript in node js to create a database.
+ 3
ok Calviղ
+ 2
Oh ! So I have to use node.js
+ 2
Thank you Shudarshan Rai 👑
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.
});