[SQL]Remote mysql connection to a MU Server?

Experienced Elementalist
Joined
Apr 15, 2008
Messages
256
Reaction score
0
So im just wondering, how (if you could) connect to a Mu Online server
Do they have to open some ports?
<?php
$link = mysql_connect('www.mudonators.com:3307', '*****', '********');
$link2=mysql_select_db("MuOnline",$link);
?>

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '88.89.216.182' (4) in /home/codingso/public_html/felling2.php on line 2

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/codingso/public_html/felling2.php on line 3
 
MU uses MSSQL, so you'd need to make a MSSQL connecting, not a MySQL one.

Oh, and mostly you can only reach a DB on the localhost...
 
Wrong, you can reach any DB externaly, all you need is to allow the DB server to allow remote connections, and then you need to setup a user with those privilleges.

Ofcourse, but for security reasons almost any server is (and should be) localhost only. Unless it's your server and you can set it to external, naturally.
 
Back