Chaos Project

General => Electronic and Computer Section => Programming / Scripting / Web => Topic started by: G_G on January 15, 2010, 02:22:32 am

Title: Accessing Databases on Our Computer
Post by: G_G on January 15, 2010, 02:22:32 am
Okay so pretty much I want to be able to access my sql database from a website. How would I go doing this?

For example: I have my RMX-OS Database on my computer. I want to be able to have my webpage access that database instead of the one on 000webhost.
I kind of cheated when doing it. I exported my rmxosdb and imported in to one in 000webhost. So thats why I want to access the one on my computer but I've had no luck.
Title: Re: Accessing Databases on Our Computer
Post by: fugibo on January 15, 2010, 07:40:29 am
You'd have to use an SQL server and configure the webserver to work with that (or use some PhP API that supports remote SQL databases).

EDIT:
Technically, there's some HTML5/JavaScript API or something that allows for local database access, but I highly doubt you're going to get that to work with local SQL.
Title: Re: Accessing Databases on Our Computer
Post by: G_G on January 15, 2010, 06:18:40 pm
Well not sure if I did what you said but I reconfigured Mysql so that it allows access from remote machines. Did that then I forwarded a port that was blocking my site. So its fully working now.