+ 2

Is there a way to interact with mysql database using javascript

Basically, what I want to know is if Javascript can be used for both front-end and backend programming

1st Mar 2019, 9:21 AM
Odumodu Okwudili Joshua
Odumodu Okwudili Joshua - avatar
4 odpowiedzi
+ 2
Front end JavaScript cannot interact directly with mysql. You need server scripts like PHP or Node.js, which is backend JavaScript library to interact with mysql. Frontend JavaScript can only send requests to server scripts through web service to request server script to retrieve data from mysql.
1st Mar 2019, 10:31 AM
Calviղ
Calviղ - avatar
+ 1
Thanks a lot.
1st Mar 2019, 10:39 AM
Odumodu Okwudili Joshua
Odumodu Okwudili Joshua - avatar
0
Okay, so basically, node.js can take care of the interaction?
1st Mar 2019, 10:34 AM
Odumodu Okwudili Joshua
Odumodu Okwudili Joshua - avatar
0
You're right.
1st Mar 2019, 10:38 AM
Calviղ
Calviղ - avatar