mysql - 错误 DBD::mysql::db do failed: 调用 native 函数时参数计数不正确 'INET_ATON'

标签 mysql perl

我正在使用xfilesharing免费,没有任何问题,直到今天我在尝试上传时收到这些错误消息:

upload.cgi: DBD::mysql::db do failed: Incorrect parameter count in the call to native function 'INET_ATON' at Modules/DataBase.pm line 65.

upload.cgi: Can't exec:s INSERT INTO Files SET file_name=?, file_descr=?, file_code=?, file_del_id=?, file_size=?, file_password=?, file_ip=INET_ATON(?), file_created=NOW()

upload.cgi: Incorrect parameter count in the call to native function 'INET_ATON' at Modules/DataBase.pm line 65.

这是第 65 行: my $rc=$self->{dbh}->do($expr,undef,@_)||die "Can't exec:\s $expr\n ".$self->dbh->errstr; 完整代码可访问pastebin.

我认为服务器更新了 Perl 版本,这可能是问题所在。 除了降级 Perl 之外,有人知道如何修复吗?

最佳答案

根据错误日志,此 MySQL 方法 ( INET_ATON ) 期望具有有效的 IPv4 地址 (X.Y.Z.A)。

这可能是一些参数顺序问题,因为这种参数分配(?)可能会导致这种情况,或者 IP 地址可能是配置文件中的服务器名称或“localhost”。

干杯。

关于mysql - 错误 DBD::mysql::db do failed: 调用 native 函数时参数计数不正确 'INET_ATON',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27289485/

相关文章:

perl - Mac OS X 中有两个版本的 Perl?

sql - 如何从多对多表中选择一条记录,其中一个 ID 存在于一个表中,而另一个表中不存在?

mysql - EAV表,查找是否同时存在2条记录

perl - 如何创建 gzip 压缩的 HTTP::Response?

perl - 如何在 Perl Linux 中为文本添加下划线?

perl - 在 Perl 中压缩完整目录

php - 设置事件在特定时间之间发生

php - Laravel 中的嵌套评论系统

mysql - sql 得到一个结果

perl - 在 Perl 中对自定义日期进行排序