in reply to Accessing MySQL DB through DBI
If that still doesn't work, make sure you set up the user correctly in MySQL to allow local access. Log into Mysql and do "select * from user" in the mysql datqabase to see the row corresponding to "root" has "localhost" in the "host" column.my $dbh = DBI->connect("DBI:mysql:dbname","roo t","password", {'RaiseError' => 1 });
|
|---|