go ahead... be a heretic | |
PerlMonks |
Re: Connect to MySQL database (on Ubuntu Server) using Perlby moritz (Cardinal) |
on Jul 25, 2012 at 12:23 UTC ( [id://983642]=note: print w/replies, xml ) | Need Help?? |
Supply a hostname to the connect call (localhost if the database server is on the same machine), so that mysql connects through the network. Also I think you have to write "dbi:mysql:database=$db". See DBD::mysql for more information.
In Section
Seekers of Perl Wisdom
|
|