Coincidentally, I used perl DBI for the very first time last night, and this worked for me fine: #!/usr/bin/perl use DBI; my $dbh = DBI->connect('DBI:mysql:mysql','username','mypassword') or die "couldn't connect to database: ".DBI->errstr; $dbh->disconnect(); Regards, Gary "SuperID" Huntress ======================================================= FreeSQL.org offering free database hosting to developers Visit http://www.freesql.org ----- Original Message ----- From: "Simon Chan" <[EMAIL PROTECTED]> To: "mysql Mail List" <[EMAIL PROTECTED]> Sent: Wednesday, May 16, 2001 6:10 PM Subject: DBI:mysql > Does anyone know the correct syntax to connect to a mysql database with DBI? > > I tried the syntax mentioned in the Perl DBI O'Reilly book, but I got errors. > > thanks > > ===== > ######################################### > Simon K. Chan > <insert important-sounding title here> > > "Great spirits have always encountered violent opposition from mediocre minds." > > -Albert Einstein > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/ > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <mysql-unsubscribe-##L=##[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <mysql-unsubscribe-##L=##[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php