GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   MySQL connection question ... (https://gfy.com/showthread.php?t=227189)

Andy 01-28-2004 03:08 AM

MySQL connection question ...
 
I have just one little question .. I use MySQL on my site and I want to use the same database on other site that is on different server .. is it possible to make connection to that database from my second site ?
thanks

- Jesus Christ - 01-28-2004 03:09 AM

yes... the MySQL networking has to be enabled (I think it is by defult) and you have t oset up the permissions correctly.


GOOGLE GOD DAMNIT!!!! WHy do poeple ask shit like this here.

Andy 01-28-2004 03:10 AM

Quote:

Originally posted by - Jesus Christ -
yes... the MySQL networking has to be enabled (I think it is by defult) and you have t oset up the permissions correctly.


GOOGLE GOD DAMNIT!!!! WHy do poeple ask shit like this here.

sorry mate .. I wanted to post some useful thread here .. got overloaded with bang ones and stuff :thumbsup

Andy 01-28-2004 03:13 AM

oki .. found
in case someone want to know

The mysql_connect function lets you specify any server you want. Just
insert the name of the host your MySQL Database is on, e.g
$conn=mysql_connect("www.yourhost.com","user","pas swd");

easy shit .. I though it could be like this

rickholio 01-28-2004 03:45 AM

Make sure you add permissions in the user or hosts tables of the 'mysql' database to allow the other server in, then do a

mysqladmin reload

to put the changes into effect.


All times are GMT -7. The time now is 08:04 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123