in reply to How can i connect to database on remote server

Remember you need the server where the database is running to accept remote connections (eg 3306 for mysql).
my $mysql_server = 192.168.1.100; my $mysql_user = "mysqlUser"; my $mysql_password = "mysqlPass"; my $mysql_db = "yourDatabase"; $DBH::conn = DBI->connect("DBI:mysql:$mysql_db;$mysql_server",$mysql_u +ser,$mysql_password,{ PrintError => 1, RaiseError => 0,) || die $DBI: +:errstr; return $DBH::conn;
"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.