in reply to Connect to MySQL database (on Ubuntu Server) using Perl
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Connect to MySQL database (on Ubuntu Server) using Perl
by liverpaul (Novice) on Jul 25, 2012 at 12:38 UTC | |
by moritz (Cardinal) on Jul 25, 2012 at 12:45 UTC | |
by liverpaul (Novice) on Jul 25, 2012 at 12:57 UTC |
In Section
Seekers of Perl Wisdom