I want to access MySQL database on my local machine only using HTML and JavaScript. I don't want to involve any scripting which would require a webserver. How to achieve this?
Asked
Active
Viewed 82 times
-1
-
1You will need server side scripting or any webservice which have manipulated mysql data... – Rayon May 03 '15 at 10:53
-
2possible duplicate of: http://stackoverflow.com/questions/3020751/can-javascript-connect-with-mysql – Lelio Faieta May 03 '15 at 11:15
3 Answers
0
JavaScript can only do stuff on the client ( or Node.js? ). You must use a server-side scripting language like PHP
to get information from a MySQL
database.
You can use AJAX
to pull information.

alquist42
- 739
- 1
- 8
- 21
-
node.js has the ability to connect to mysql with the right package: on npm you can find it as mysql. – Lelio Faieta May 03 '15 at 11:14