Hi,
I've been getting a unknown SQL error for any function that uses the DB_SLAVE database (I only have 1 database) when running a script from the command line. The script is pretty basic, it's just cleaning up some talk pages that have broken HTML in them. I've done what maintenance/cleanUpSpam does with
$dbw =& wfGetDB( DB_MASTER ); $dbw->immediateBegin();
and then
$dbw->immediateCommit(); wfDoUpdates();
but am getting this error:
any ideas?
PHP Warning: mysql_query(): Unable to save result set in /var/www/html/wiki16/includes/Database.php on line 435
Warning: mysql_query(): Unable to save result set in /var/www/html/wiki16/includes/Database.php on line 435 A database error has occurred Query: SELECT old_text,old_flags FROM `text` WHERE old_id = '197785' LIMIT 1 Function: Revision::loadText Error: 2000 Unknown MySQL error (10.234.169.196)
Backtrace: GlobalFunctions.php line 602 calls wfbacktrace() Database.php line 473 calls wfdebugdiebacktrace() Database.php line 419 calls databasemysql::reportqueryerror() Database.php line 806 calls databasemysql::query() Database.php line 825 calls databasemysql::select() Revision.php line 667 calls databasemysql::selectrow() Revision.php line 435 calls revision::loadtext() Revision.php line 424 calls revision::getrawtext() Parser.php line 2805 calls revision::gettext() Parser.php line 2642 calls parser::fetchtemplate() - line - calls parser::bracesubstitution() Parser.php line 2231 calls call_user_func() Parser.php line 2319 calls parser::replace_callback() Parser.php line 2725 calls parser::replacevariables() - line - calls parser::bracesubstitution() Parser.php line 2231 calls call_user_func() Parser.php line 2319 calls parser::replace_callback() Parser.php line 824 calls parser::replacevariables() Parser.php line 231 calls parser::internalparse() Article.php line 2303 calls parser::parse() Article.php line 1493 calls article::editupdates() cleanupTalkPages.php line 18 calls article::updatearticle() cleanupTalkPages.php line 35 calls cleanuparticle()
wikitech-l@lists.wikimedia.org