Click to See Complete Forum and Search --> : Data base connectivity


SniperX
04-10-2003, 07:24 AM
Im using this, but it brings up an error
any thoughts:

use DBI;
my $dsn = "dbi:mysql:db_databasename:localhost";
my $user = "mysql";
my $pass = "mysql123";

but it doesnt connect

Thankx in advance
Regards MW

jeffmott
04-10-2003, 09:35 AM
but it doesnt connectThat's because you havn't told it to yet. All you've done is set a few variables. See the documentation for DBI. http://search.cpan.org/author/TIMB/DBI-1.35/DBI.pm

SniperX
04-10-2003, 11:42 PM
Thankx that site helped


____________________________
"Nothing is too wonderful to be true" - Michael Farraday(UCLA)