DBI连接MYSQL的问题

DBI连接MYSQL的问题

DBI连接MYSQL的问题
my $DSN = "DBI:mysql:database=mdb;host=10.16.1.12;port=8848";
$dbh_mddb=connectDB($DSN,"mysql","mysql");

sub connectDB{
my ($dbSource, $dbUser, $dbPwd) = @_;
my $dbh = DBI->connect($dbSource, $dbUser, $dbPwd )
...
}

-------------出错信息如下:
DBI connect('database=mdb;host=10.16.1.12;port=8848','mysql',...) failed: Client does not support authentication protocol requested by server; consider upgrading MySQL client at .//recollect_hw1102.pl line 280
ERROR: Connect db fail [DBI:mysql:database=mdb;host=10.16.1.12;port=8848], [dc_mysql], [dc_mysql]
Can't call method "disconnect" without a package or object reference at .//recollect_hw1102.pl line 297.

-------------[CCB]10[/CCB]
把错误放到 google 里搜一.
把错误放到 google 里搜一下就知道了。
http://www.google.ca/search?q=Client+does+not+support+authentication+protocol&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official
你的mysql客户端有问题,不是perl问题