So I am using Perl DBI module to access MySQL database on a server linux machine, which I do not have root access. The admin installed the MySQL and create a database for me. I can write a Perl script to access the database just fine.
Then I installed MySQL in my local space and change environment variable to use the locally installed mysql executables. I can access the database from command line. But after I change the Perl script accordingly and execute it, I got "Access denied" error. And it seems the Perl script still try to use the admin installed mysql to access.
So how can I solve this?
Here's how I connect:
my $conn = DBI->connect("dbi:mysql:dbname:localhost:3366", "root", "root")
or die DBI::errstr;