我正在使用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/