adam_blackice has asked for the wisdom of the Perl Monks concerning the following question:
and the error is >>#!/usr/bin/perl -w use strict; use DBI; #step1- create connection objection my $dsn = 'DBI:mysql:firstDB'; my $user = 'adam'; my $password = 'no4vista'; my $conn = DBI->connect($dsn,$user,$password) || die "Error connecting +". DBI->errstr;
and iam sure of the user and he password on my systemroot@adam-laptop:/home/adam/Desktop# perl db.pl DBI connect('firstDB','adam',...) failed: Access denied for user 'adam +'@'localhost' (using password: YES) at db.pl line 9 Error connectingAccess denied for user 'adam'@'localhost' (using passw +ord: YES) at db.pl line 9.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why this simple script return error ?
by rhesa (Vicar) on Apr 01, 2007 at 16:50 UTC | |
by adam_blackice (Acolyte) on Apr 01, 2007 at 16:56 UTC | |
|
Re: why this simple script return error ?
by arc_of_descent (Hermit) on Apr 02, 2007 at 06:07 UTC | |
|
Re: why this simple script return error ?
by krikbugs (Novice) on Apr 01, 2007 at 22:50 UTC |