Last modified: 2012-08-04 20:48:54 UTC
I am using a PostgreSQL backend, but maintenance scripts try to access MySQL. Running maintenance scripts give the following error: DB connection error: MySQL functions missing, have you compiled PHP with the --with-mysql option?
Which scripts are you trying to run? WFM even after I completely disable mysql. === host:# php -r '$connect = mysql_connect("localhost", "root", "password");' Fatal error: Call to undefined function mysql_connect() in Command line code on line 1 ==== === host:# # php update.php MediaWiki 1.13alpha Updater Going to run database updates for wikidb Depending on the size of your database this may take a while! Abort with control-c in the next five seconds...2 ... ... obsolete version of index "pagelink_unique index" does not exist ... index "pagelink_unique_index" aready exists ... constraint "revision_rev_user_fkey" is ON DELETE RESTRICT Done. ===
I'm trying to run rebuildImages.php. The error also appears when I try to run rebuildall.php or cleanupImages.php. rebuildtextindex.php specifically returns "This script is only for MySQL." update.php worked for me as well.
Ah yea. IANADev but to me it looks like that those scripts don't properly create the right database class, they just use Database instead of checking to see if it should use DatabasePostgres instead. As per bug 9905 and rebuildtextindex: "Closing: no script is needed to rebuild the full text indexes on Postgres, it's all trigger based. (Thanks for the r22172 change though)."
Thanks, this should be fixed as of r31958