Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

truncating mediawiki

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


plindenbaum at yahoo

Oct 23, 2009, 1:23 AM

Post #1 of 3 (195 views)
Permalink
truncating mediawiki

Hi all,


Hi all,
I'm working with the mediawiki API and I would like to 'truncate' the mysql tables in order to
reset my local installation while keeping the users.


What would be the SQL queries ?
I would say: tuncate all the tables but ${PREFIX}_user and update ${PREFIX}_user set user_editcount=0 ?
Any other(safer) suggestion ?
Thank you in advance
Pierre





_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


Platonides at gmail

Oct 23, 2009, 1:56 PM

Post #2 of 3 (171 views)
Permalink
Re: truncating mediawiki [In reply to]

Pierre LINDENBAUM wrote:
> Hi all,
>
>
> Hi all,
> I'm working with the mediawiki API and I would like to 'truncate' the mysql tables in order to
> reset my local installation while keeping the users.
>
>
> What would be the SQL queries ?
> I would say: tuncate all the tables but ${PREFIX}_user and update ${PREFIX}_user set user_editcount=0 ?
> Any other(safer) suggestion ?
> Thank you in advance
> Pierre

You may not want to truncate user_properties. Doing that would reset
everybody to default preferences.
user_groups holds which users are sysops, which bureaucrats... so don't
truncate that either.
The site_stats table contain coutners for users but also for pages and
views. I think they would recompute automatically but you can change the
values manually.
Since you're keeping users, keeping blocks could also be desirable
(ipblocks).
If you truncate the logging table, you will lose information for user
creation and blocks (you'd need to delete some types only).

It is not needed, but you can keep the math table.
The tables interwiki and updatelogs wouldn't really need new values for
the new wiki.

It's ok to truncate the othe tables: user_newtalk, page, revision, text,
archive, pagelinks, templatelinks, imagelinks, categorylinks, category,
externallinks, langlinks, hitcounter, watchlist, image, oldimage,
filearchive, recentchanges, searchindex, interwiki, querycache,
objectcache, log_search, trackbacks, job, querycache_info, redirect,
querycachetwo, page_restrictions, protected_titles, page_props,
change_tags, tag_summary, valid_tag, l10n_cache.


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


Platonides at gmail

Oct 23, 2009, 1:59 PM

Post #3 of 3 (170 views)
Permalink
Re: truncating mediawiki [In reply to]

PS: Remember to delete the files at the image folder. On truncating the
image table, they will be disassociated and could give problems when
reuploading.


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.