Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exposing your mysql database through a web server

Status
Not open for further replies.

dzisaacs

Programmer
Joined
Dec 12, 2002
Messages
53
Location
PA
Is there a way of exposing your database through a web server so that you can access it with a URL. Can you do that with MySQL?
 
You don't need a web server to access a MySQL database; just open port 3306 (or whatever port you use) to the world (after making sure you have the permissions right!). You can then use any MySQL client program to access it, specifying the host address at connection time.
 
could you give me an example of a link using that port...

i need to have a link because i want to insert some data using xslt to a mysql database, and it looks like the document() function will help me having the url inside

my database name is daniel

for example
document(
i need to have something like this in order to store or retrieve things from the database
 
I don't know of any direct way to access a MySQL database using http, but one possibility might be to write a little CGI program that will take SQL code as a URL argument, and process it, returning data if required. For example, something like:
[tt]
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top