[ic] MySQL 4.1, DBD::mysql 2.1028,
"too few arguments to function mysql_..."
Daniel Browning
db at kavod.com
Mon Mar 7 16:20:33 EST 2005
If you are voluntarily using the older DBD::mysql driver (2.1028) because the
newer driver results in "MySQL server has gone away at ...", and you are
compiling for MySQL 4.1, and you get these error during make:
mysql.xs: In function `XS_DBD__mysql__dr__admin_internal':
mysql.xs:101: too few arguments to function `mysql_shutdown'
make: *** [mysql.o] Error 1
Then you can fix the error with this simple patch to mysql.c:
--- mysql.c.orig 2005-03-07 13:18:52.000000000 -0800
+++ mysql.c 2005-03-07 13:19:21.000000000 -0800
@@ -1193,7 +1193,7 @@
}
if (strEQ(command, "shutdown")) {
- result = mysql_shutdown(sock);
+ result = mysql_shutdown(sock, SHUTDOWN_DEFAULT);
} else if (strEQ(command, "reload")) {
result = mysql_reload(sock);
} else if (strEQ(command, "createdb")) {
--
Daniel Browning <db at kavod.com> - Kavod Technologies. Random Fortune:
Whether you can hear it or not,
The Universe is laughing behind your back.
-- National Lampoon, "Deteriorata"
More information about the interchange-users
mailing list