aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/mysql.php
Commit message (Collapse)AuthorAgeFilesLines
* Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUseJames D. Forrester2020-01-101-1/+1
| | | | Change-Id: I94a0ae83c65e8ee419bbd1ae1e86ab21ed4d8210
* Use namespaced IPUtils classKunal Mehta2020-01-011-1/+2
| | | | Change-Id: I047e099a93203a59093946d336a143d899d0271f
* Make use of the list() feature where it makes senseThiemo Kreuz2019-03-241-3/+1
| | | | | | | | | | This code is functionally identical, but less error prone (not so easy to forget or mix these numerical indexes). This patch happens to touch the Parser, which might be a bit scary. We can remove this file from this patch if you prefer. Change-Id: I8cbe3a9a6725d1c42b86e67678c1af15fbc5961a
* maintenance: Remove unused code from several maintenance scriptsThiemo Kreuz2019-03-031-2/+0
| | | | | | | | | | | | The most notable removal is done in the orphans script. This code was really never used. Brion introduced it in 2005, already disabled. I have all the respect for what Brion did. I just think it does not make much sense to keep code around for so long if it does not work anyway, and must be rewritten from scratch anyway now that we have multi-content revisions and such. Change-Id: I4e8050929f90e44a6e6051bf938993a8b0cdf649
* Fix param doc of MysqlMaintenance::runMysqlUmherirrender2018-08-061-2/+2
| | | | | | Add missing var name and type Change-Id: I26c84723ee28b21f6b9b654d9507ed680c07055a
* In mysql.php ignore SIGINTTim Starling2018-07-181-0/+6
| | | | | | | | | | | | | | | | | | Every foreground process with the terminal open will receive SIGINT when the interrupt key is pressed. But mysql handles SIGINT and kills the running query, we don't want the wrapper to exit in that case. So, ignore SIGINT while mysql is running. This is similar to how a shell deals with this problem. The other options would have been: * Close the filehandles in PHP after forking (probably impossible) * Use pcntl_exec() so that PHP isn't running (more complicated and requires the pcntl extension anyway) * Clear termcap ISIG flag (probably would have broken mysql) Bug: T199152 Change-Id: I7660cd24e036fbe3fe36d12563ffe1c1fa2360d0
* Maintenance script to wrap the mysql binaryTim Starling2018-05-311-0/+184
This is more or less equivalent to the WMF shell script "sql", but it is reasonably portable and written in a less hackish way. Change-Id: I240d8d4e65ce46680cac257ee376a9b026c13f92