Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 78931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:03:55+00:00 2026-05-10T21:03:55+00:00

I want to access a MySQL database directly from JavaScript code in an HTML

  • 0

I want to access a MySQL database directly from JavaScript code in an HTML page in Firefox.

Does such a library exist?

To be very clear, CGI+Ajax will not work

Some background: I want to create something like a GUI front end for a MySQL database (that’s not what it is, but it’s close enough). I’m thinking about doing this as a local HTML page using JavaScript but for that to work I would need MySQL bindings for JavaScript under Firefox. I already have a working prototype in under 100 LOC, but it requires a web server, and for reasons that are beyond this question, that won’t work.

NOTE: both the database and the JavaScript code will be running locally and are not intended as a public page. In fact the HTML file will loaded as a file://// file. The only reason I’m using JavaScript is that it’s the only available system for doing GUI stuff where I need it.

I’m willing to install plugins, DLL’s, Windows dependent stuff or what not to make this work.


Edit: It looks like the answer is, ‘It can be done, but it’s going to be painful’. As one of my options is to just spew out all the data as files (ugly, and not too flexible, but it would work) I think I’m not going to pursue this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T21:03:56+00:00Added an answer on May 10, 2026 at 9:03 pm

    JavaScript code lives inside the browser. It can make HTTP requests to the outside, but not really much more. So by design you won’t be able to bind to a program running locally. If MySQL did expose an HTTP service, it might be possible, but that’s not the case.

    You might be able to find a plugin for Firefox that exposes a MySQL API to JavaScript, but I don’t know any such plugin.

    If you don’t specifically need MySQL, but just a database accessible from JavaScript code, have a look at Google Gears. It is a Firefox / Internet Explorer plugin that exposes an SQLite database and a few other goodies.

    If you give more information on what you are trying to build, we might be able to give you better advice…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 63k
  • Answers 63k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer You can animate both the Ellipse and the line together,… May 11, 2026 at 10:29 am
  • added an answer var pos = $('#mybutton').offset(); //if dialog height/width are known var… May 11, 2026 at 10:29 am
  • added an answer Qt Creator uses MinGW under the hood, so it only… May 11, 2026 at 10:29 am

Related Questions

I want to access a MySQL database directly from JavaScript code in an HTML
I want to access my sql server database files in a INTEL SS4000-E storage.
I want to access MySQL through ruby on a shared linux server. I figure
I want to access a UIImage programmatically... i.e. myImage.hidden = TRUE; etc. I can
I want to use LabVIEW's Call Library Function Node to access a DLL function,
I want to access the call stack at runtime in a Native C++ application.
I wrote a DLL in .NET and I want to access it in VBScript.
I have a nested movie clip instance that I want to access. The path
I want to override access to one variable in a class, but return all
I want to, from JavaScript, access as a variable the file that is loaded

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.