zelf has asked for the wisdom of the Perl Monks concerning the following question:
I get the following error:use lib '/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi/DBD' +; use DBI; use mysql; $hostname="localhost"; $db="database"; $port="3306"; $dbuser="username"; $dbpassword="password"; $table="table"; $DBI_DSN="dbi:mysql:database=$db;host=$hostname;port=$port"; $dbhandle = DBI->connect($DBI_DSN,$dbuser,$dbpassword,{ RaiseError => +1, AutoCommit => 0});
I can connect from mysql command line with the username and password no problem. I can also connect via php from my website, but just not from perl.DBI connect ('database=database;host=localhost;port=3306','username',. +..) failed: Access denied for user: 'username@localhost.localdomain' +(Using password: YES)...
2004-12-02 Janitored by Arunbear - added code tags, as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MySQL Access is Denied
by neniro (Priest) on Dec 02, 2004 at 23:02 UTC | |
|
Re: MySQL Access is Denied
by StrebenMönch (Beadle) on Dec 02, 2004 at 21:25 UTC | |
by zelf (Initiate) on Dec 02, 2004 at 21:51 UTC | |
by StrebenMönch (Beadle) on Dec 03, 2004 at 16:19 UTC | |
by Anonymous Monk on Mar 31, 2021 at 10:55 UTC | |
|
Re: MySQL Access is Denied
by dragonchild (Archbishop) on Dec 02, 2004 at 19:37 UTC | |
by zelf (Initiate) on Dec 02, 2004 at 19:39 UTC | |
|
Re: MySQL Access is Denied
by trammell (Priest) on Dec 02, 2004 at 20:09 UTC | |
by zelf (Initiate) on Dec 02, 2004 at 20:46 UTC | |
by trammell (Priest) on Dec 02, 2004 at 22:39 UTC |