Here you go, just use DBI; while making sure you have DBD::mysql installed.
You can connect to any host that has mysql installed (if you're allowed to access it from outside)
use DBI; # connect to localhost or remote host by specifying its ip address or +hostname my $HOST = 'x.x.x.x'; # port , usually 3306 my $PORT = 3306; # database name my $DB = 'somedb'; my $dsn = "DBI:mysql:database=$DB;host=$HOST;port=$PORT";
In reply to Re: mysql remote server query
by ahmad
in thread mysql remote server query
by terry1738
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |