|
Posted by Rik on 05/30/06 20:35
wrote:
> I have a few MySQL databases that came with my hosting package.
> My friend has very simple webhosting and did not get any databases.
> How do I allow him access to one of my databases? (I will create one
> for his specific use).
> Many times it asks for the direct path to the database but AFAIK this
> is from my hosting. I guess I need to know how to point from his site
> to my site with the database.
Normally, on shared hosting, the database isn't reachable from other
machines then the server itself. If you have total control over MySQL, you
could alter this, I doubt you have the rights ATM.
Probably the only way for him to use your database is to create dynamic
pages/files with output from the database, and possible input for the
database by forms. That would be:
a) A LOT of work.
b) A security disaster.
If your friend has the possibilies of actually using the data, he probably
has some server-side language like PHP (why else post in alt.php.sql?). In
that case he's better of using CSV's instead of a database.
In all propability, your friend also hasn't got any serverside language if
he hasn't got a database (in most hosting package these are combined), and
giving him access to that database isn't even usefull.
Grtz,
--
Rik Wasmus
[Back to original message]
|