Umm, you didn't specify a username or password...you instead passed 'undef'.
This is the connect string I use:
$dbh = DBI->connect( "DBI:mysql:database=$pb_db; host=$pb_server;
port=$pb_port",
$pb_user,
$pb_password,
{RaiseError => 1});
Regards,
Rich
At 03:20 PM 8/18/01, you wrote:
>I am using Perl DBI to interface with MySQL and when i execute the
>following statement:
>$dbh = DBI->connect('DBI:mysql:database=dbmysql2', undef, undef,
>{PrintError =>0}) || die $ DBI::errstr;
>it causes the error:
>[Fri Aug 17 09:59:50 2001] productioncontent14.pl: Access denied for user:
>'@localhost'
>to database 'dbmysql2' at productioncontent14.pl line 29, <STDIN> line 1
---------------------------------------------------------------------
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 <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php