On Sat, Aug 18, 2001 at 11:07:06AM -0400, Steven Marx wrote:
> I am having a problem with MySQL. I am seeking some advice on either what is wrong
> or how to pursue the cause of this bug.
>
> 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
print "Enter username: ";
chomp( my $username = <STDIN> );
print "Enter password: ";
chomp( my $password = <STDIN> );
$dbh = DBI->connect('DBI:mysql:database=dbmysql2', $username, $password,
{PrintError =>0}) || die $ DBI::errstr;
--
Any technology distinguishable from magic is insufficiently advanced.
TopQuark Software & Serv. Contract programmer, server bum.
[EMAIL PROTECTED] Give up Spammers; I use procmail.
---------------------------------------------------------------------
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