Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello
How do you connect to a mysql database as an anonymous user with perl? The following did not work:
The error message was access denied for anonymous with password yes. thanks a lotmy $username = "anonymous"; my $password = "yes"; our $sql_database = "xxxx"; our $sql_host = "xx"; our $sql_port = "3306"; my $db = DBI->connect("DBI:mysql:database=$sql_database;host=$sql_host +;port=$sql_port", $username, $password, {'RaiseError' => 1});
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to connect to mysql as anonymous user with perl
by roboticus (Chancellor) on Dec 30, 2010 at 18:09 UTC | |
Re: how to connect to mysql as anonymous user with perl
by oko1 (Deacon) on Dec 30, 2010 at 18:32 UTC | |
Re: how to connect to mysql as anonymous user with perl
by PeterPeiGuo (Hermit) on Dec 30, 2010 at 18:33 UTC | |
by oko1 (Deacon) on Dec 30, 2010 at 18:46 UTC |
Back to
Seekers of Perl Wisdom