views:

70

answers:

1

I am using JavaScript standalone, not running in a browser.

I want to connect to a mysql server running on the same host.

Is there a JavaScript library for this?

Edit: I had a look at Jaxer. It has mysql functionality, but it is baked into the framework.

+5  A: 

If you're referring to server-side Javascript, Jaxer:

http://www.gen-x-design.com/archives/javascript-mysql-with-jaxer/

Otherwise Javascript is mainly used for client side scripting. Though you can utilize XMLHttpRequest and hit a server-side page that can do the backend interaction to access a db.

meder