At http://search.cpan.org/~michielb/DBD-mysql-4.043/lib/DBD/mysql.pm#SYNOPSIS it shows
Note that compared to your example it shows the database specification coming before host with the ":" before database and ";" before host.my $dsn = "DBI:mysql:database=$database;host=$hostname;port=$port"; my $dbh = DBI->connect($dsn, $user, $password);
In reply to Re: db connection help
by huck
in thread db connection help
by attagirl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |