Manual talk:Database layout

The list of tables is good...
The list of tables is good, but can it be sorted based on whether it can be regenerated, contains archive info, etc.? --69.208.92.53 20:08, 26 Oct 2004 (UTC)

Automatic generation of Wiki Pages?
I would like to automatically generate a series of MediaWiki pages. These pages may link to one another or have images. How can I do this, say from Java or PhP? Thanks for your help.

Please update
It's not updated. Theres is not Cur table since Media-Wiki 1.5, so I don't find my article-text in database.80.185.5.1 19:01, 3 November 2005 (UTC)
 * Done. I wasn't sure whether to keep a single page with both versions, or to split the page. I chose the former.Behrang Amini 23:12, 26 January 2006 (UTC)

Pagelinks table should be described
Links table was merged with brokenlinks to create 'pagelinks' table - this must be described
 * See Pagelinks_table

Request for description of new tables
I'd like to ask again: please describe the new 1.5 database. I'd like to know how to create a new page via mysql inserts. -Thanks Tbsmith

Description is here!
Tables.sql

Profiling table creation and description?
I'm a new MediaWiki hacker, so please bear with my lack of knowledge!

I'd like to get this profiling stuff working on 1.5.5. But I have 2 BIG problems:
 * The profiling table is not created by default, nor is it in the tables.sql script
 * It does not seem to be documented anywere (e.g. I would have thought the Help:Database layout page would be a good place to look

Please help!

I can't get the newsreader thingie working yet either so have to come here! Mediashrek 15:45, 25 January 2006 (UTC)

Why isn't Ipblocks table downloadable?
I would like to use the Ipblocks table because I've started to have problems with people spamming my wiki -- I thought I could help stem the problem by using wikipedia's block list, but it seems to be unavailable.

Uploading Articles in Bulk
I have a 1,000 articles to be uploaded (imported). I assume that doing so at the database level would be easiest. What tables need to be updated?


 * Importing articles direct into the database is never a good idea because you don't know what de software does in other tables. The best thing you can do is to use the import function. I thought there was an extension that allowed you to import articles from Word files but I'm not sure. --GrandiJoos 09:50, 27 September 2006 (UTC)


 * This is actually a similar issue to my question below, but the question (well, for me) isn't so much whether or not it's a good idea to import articles directly into the database, but whether or not it is even possible...? In my case, the articles were all built within MediaWiki and therefore still in database-form, which I assume wouldn't be a problem importing individually. The problem is, I'm trying to import an entire wiki database over a brand new MediaWiki installation somehow and I'm not sure how to make it happen because you can't install the software without having it automatically create and/or change the database it is being associated with. -- Randall00 20:25, 13 July 2007 (UTC)

Deleting of tables?
I have a MediaWiki installation since a few years and did every update up to 1.6.8. Now in the database there are a lot more tables then needed by mw1.6 (blobs, brokenlinks...). Can i delete this tables without problems? And another question: There is a problem with one of the links tables. On image pages under "The following pages link to this file:" there is always the image page of this image listet, and so the specialpage unusedimages gives no results. Any ideas? -- 217.230.154.214 10:15, 9 February 2007 (UTC)
 * Hmm... try rebuilding the link tables by running the rebuildAll script in the maintenance folder. As for the tables; you can try, but be advised to delete tables only one at a time, and to back up your database before you begin. Those tables should not be being used. Titoxd (?!?) 20:40, 11 February 2007 (UTC)

Fresh MediaWiki installation over existing MediaWiki database?
With regards to the database layout and the information provided here....is the information here enough to be able to extract the text from user's web-side submissions via a MySQL database in its raw form (or exported [CSV,etc.], I guess)?

Basically, I created a wiki a little while back (still version 1.10 though) and it ceased to function due to a web host/network disaster. I still have the MySQL database and would like to be able to port that content into a new installation of MediaWiki. This must be possible since the database didn't exist prior to installing MediaWiki and all of the contributions to said database were made through the MediaWiki software on the user side.

Nevertheless, I can't find much in the way of documentation about how to do something like that, and since the base procedure requires you to specify an administrator user just before installation, there must be a conflict with my existing database's administrator user that prevents me from being able to install and link directly to that database.

So I'm trying to engineer a way to do that manually (even if it does require copying all of the users' inputs straight out of the database into fresh articles on a totally fresh install), but if you happened to know of an easier way, by all means let me know! The key is that I need to keep the data from the original wiki. Skins and styles are less of a concern. -- Randall00 20:19, 13 July 2007 (UTC)

Inacurracy of table
The table shown here is not comprehensive and has a few inacuracies. I have generated a new one using my army of wiki instalations 1.2 to trunk. See User:MinuteElectron/Sandbox/Database layout table - it would be nice if someone could verify it for accuracy then alert me so I can replace the one on this page (if people like it). Thanks. MinuteElectron 20:42, 9 October 2007 (UTC)
 * If there is no objection by the 16th October I will replace the table with my one. MinuteElectron 11:09, 13 October 2007 (UTC)
 * I don't know when you did it, but THANK YOU, dang it. :) Titoxd (?!?) 21:20, 6 December 2007 (UTC)

Simplified Diagram
There's a simplified diagram in this slideshare presentation, which might go well on this page. Dont know the copyright status of that though -- Harry Wood 14:59, 1 November 2007 (UTC)

Migration from MySQL to PostgreSQL
Are there any tools or scripts to migrate a large existing wiki from mysql to postgresql database? -- 192.109.190.88 08:39, 17 January 2008 (UTC)

In which table does wiki save all the articles
I've seen the database-layout and searched with phpmyadmin in the wiki-database, but I can't find the table in which the articles are saved.

Missing tables
Updated from 1.16.0 to 1.17.0, script didnt create the new tables. Would be really cool if the developers could update the manual too, so people like me can create those tables manually.--77.182.58.115 11:44, 12 July 2011 (UTC)