RE: hotlink MySQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Is it possible to "hotlink" a MySQL database?
> 
> my site location is different then my MySQL location. (or at least a
> site).
> Is it possible to use the database for both sites or should I set up
the
> database at both locations?
> 
> The reason for asking is that one of the locations doesn't provide
MySQL
> DB's anymore (max number of DB's is limited)
> 
> Pls let me know if this is possible, and if so, how.

It's possible as long as your database allows remote access. You just
give the IP address of the mysql server in your mysql_connect()
function.

$link = mysql_connect("192.168.0.1","user","password");

---John Holmes...



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux