[19:38:38] is there a quick way to reset wiki to initial state (i.e. like one just after install)? [19:40:28] truncating all the db tables would vaguely have that effect [19:40:33] drop database + run maintenance/install.php ? [19:45:55] ori: nope, second part didn't work: A LocalSettings.php file has been detected. [19:45:55] To upgrade this installation, please run update.php instead [19:46:17] move it out of the way, and then back into place [19:46:20] and update doesn't work of course because there's no db [19:46:23] drop, move LS, install.php, move LS, run update.php [19:47:21] DB connection error: Access denied for user 'root'@'localhost' (using password: NO) (localhost). [19:48:35] I guess I need to find the db settings... [19:48:43] SMalyshev: --dbname , --dbuser , --dbpass [19:49:00] https://github.com/wikimedia/mediawiki/blob/master/maintenance/install.php#L39-L91 [19:49:23] aha, ok, that seems to work, thanks! [19:49:30] what is it that you're trying to *preserve*? [19:50:39] if it's things like extension / misc config, a good pattern is to have all of that defined in a separate file, CustomSettings.php or what have you. That way you can regenerate LocalSettings.php and just add "include __DIR__ . '/CustomSettings.php';" to get your old config back. [19:50:42] ori: I don't try to preserve anything, I try to reset the wiki [19:50:57] ah [19:51:00] without actually deleting and reinitializing the whole VM [19:55:42] SMalyshev: the old db settings should in the the old LocalSettings [19:56:00] MatmaRex: yes, thanks, found it. seems to be fine now