User Comments

I have just identified and resolved a recurring problem with this error when using PHP in FreeBSD 5.3.

If you're using mysql_pconnect and you call that function repeatedly, and then execute queries on that connection, you will receive this error message. This may be due to the way persistent connections are handled in FreeBSD.

The workaround is to use mysql_connect, which does not generate this error message.

It's best to avoid using mysql_pconnect() in any case, as persistent connections are not supported in PHP 5's mysqli extension (to which all PHP/MySQL development will eventually need to be ported), and really aren't of benefit to Web applications.