I'm deplying a server and can't connect to MySql with Perl. I receive the error "Access denied for user 'root'@'localhost' (using password: YES)"
On my users table i have root with all privileges at localhost and also at '%'(any host). I can access the database under 'root' user from the linux shell but with Perl script it does not work.
$dbh = DBI->connect ("DBI:mysql:host=localhost;database=mydb",
"root", "mypass",
{PrintError => 0, RaiseError => 1});