请问高手, Perl 连接MySQL时,语句如下:
use DBI;
my $dbh = DBI->connect("dbi:mysql:testsql:localhost,port=3306","root","abc");
print "success";
$dbh->disconnect;但是在编译时会遇到如下错误提示:
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains:
D:/Program Files/Perl/site/lib D:/Program Files/Perl/lib .) at (eval 5) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: CSV, DBM, ExampleP, File, Gofer, ODBC, Oracle, Proxy, SQLite,
Sponge, mysqlPP.
at F:\Perl\data.pl line 2安装错误提示方法在Active Perl的包管理中安装DBI,DBD模块并更新,仍然不行,是什么原因呢
use DBI;
my $dbh = DBI->connect("dbi:mysql:testsql:localhost,port=3306","root","abc");
print "success";
$dbh->disconnect;但是在编译时会遇到如下错误提示:
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains:
D:/Program Files/Perl/site/lib D:/Program Files/Perl/lib .) at (eval 5) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: CSV, DBM, ExampleP, File, Gofer, ODBC, Oracle, Proxy, SQLite,
Sponge, mysqlPP.
at F:\Perl\data.pl line 2安装错误提示方法在Active Perl的包管理中安装DBI,DBD模块并更新,仍然不行,是什么原因呢
解决方案 »
- 在XP上连接linux上的msyql出错
- 更改两个表的关联值
- Linux中不能建立存储过程
- 请问,VB中如何向MYSQL数据库中插入图片呀..(BLOB数据类型),最好有代码,请高手看过来
- MySql连接字符串问题, 如何设置空用户, 空密码
- 菜鸟的数据库创建问题
- redhat9上安装postgresql 时出错。 使用./confiuge --with-python时出错!(没找到解决办法!)
- 数据恢复时必须存在相应的数据库和表吗?
- Apache 1.3.2+PHP4.0.6+MySql 为什么老是报告MYSQL错误!?
- 在MySQL中如何创建中文名的数据表
- mysql自动停止
- 质疑有设么方法可以让sqlserver 或者 oracle的db数据 导入到mysql
从上面网站下载DBD::mysql::Install,DBD::mysql和DBD::mysqlPP 然后安装试试参考http://topic.csdn.net/u/20090112/15/4e94306d-221e-4b08-b413-6bf9051d713a.html