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 });
In reply to Re: Accessing MySQL DB through DBI
by johnnywang
in thread Accessing MySQL DB through DBI
by GaijinPunch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |