<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.lensovet.net/~sysadmin/w/index.php?action=history&amp;feed=atom&amp;title=Help%3APostgreSQL</id>
	<title>Help:PostgreSQL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.lensovet.net/~sysadmin/w/index.php?action=history&amp;feed=atom&amp;title=Help%3APostgreSQL"/>
	<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:PostgreSQL&amp;action=history"/>
	<updated>2026-05-04T03:23:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.16</generator>
	<entry>
		<id>http://www.lensovet.net/~sysadmin/w/index.php?title=Help:PostgreSQL&amp;diff=1752&amp;oldid=prev</id>
		<title>Wadmin: 1 revision(s)</title>
		<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:PostgreSQL&amp;diff=1752&amp;oldid=prev"/>
		<updated>2006-07-19T05:34:36Z</updated>

		<summary type="html">&lt;p&gt;1 revision(s)&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 05:34, 19 July 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Wadmin</name></author>
		
	</entry>
	<entry>
		<id>http://www.lensovet.net/~sysadmin/w/index.php?title=Help:PostgreSQL&amp;diff=1751&amp;oldid=prev</id>
		<title>141.233.47.218: Note about Wikipgedia project</title>
		<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:PostgreSQL&amp;diff=1751&amp;oldid=prev"/>
		<updated>2006-02-16T19:03:32Z</updated>

		<summary type="html">&lt;p&gt;Note about Wikipgedia project&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''The experimental PostgreSQL support has not been maintained; MediaWiki 1.5 is not able to run on PostgreSQL and will not until/unless someone interested puts in the necessary work to update the files. --[[User:Brion VIBBER|brion]] 07:40, 21 Jun 2005 (UTC)'''&lt;br /&gt;
:On that note, for those still interested, there is [http://pgfoundry.org/projects/wikipedia Wikipgedia].  It's far from complete, but definitely still being worked upon. --[[User:141.233.47.218|141.233.47.218]] 19:03, 16 February 2006 (UTC)&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
This is a work-in-progress.  More details to be forthcoming as I discover them.  :) --[[User:ChadMiller]] 19:36, 7 Dec 2004 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Status ==&lt;br /&gt;
&lt;br /&gt;
[[MediaWiki 1.4]] will be adding support for [http://www.postgresql.org/ PostgreSQL] as a back-end database.&lt;br /&gt;
&lt;br /&gt;
As of September 2004, the installer doesn't support it and various functions are still incomplete or have errors: see [[bugzilla:384|the tracking entry in bugzilla]] for remaining problems.&lt;br /&gt;
&lt;br /&gt;
== Patches ==&lt;br /&gt;
&lt;br /&gt;
Patches available at http://sandbox.chad.org/mediawiki/ !&lt;br /&gt;
&lt;br /&gt;
: Update:  Several of these patches are now included in CVS (without attribution in the log :P ).   If 'patch' asks if you really mean to reverse a patch, then it's probably already applied.  --[[User:ChadMiller|ChadMiller]] 21:59, 19 Jan 2005 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
The description that follows assumes that you have PostgreSQL installed and running.  You can create users and databases and connect to the local databases from the command-line utility &amp;quot;psql&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
If that isn't true, then you should look elsewhere for help.&lt;br /&gt;
&lt;br /&gt;
== Creating the Database ==&lt;br /&gt;
&lt;br /&gt;
After you fill out the initial Mediawiki setup form in ''config/index.php'', but before you submit it, you need to use that information to prepare bits of the database that the setup can not (yet) perform.&lt;br /&gt;
&lt;br /&gt;
If you will use the same machine for database server and web server, then the &amp;quot;'''...shell'''&amp;quot; blocks below will actually be on the same machine and have the same prompt.  If you use the same machine, you may leave the &amp;quot;server&amp;quot; fields blank and db connections will go through a Unix domain socket, which is a very fast transport -- much faster than merely connecting through IP to &amp;quot;localhost&amp;quot; or a remote server.&lt;br /&gt;
&lt;br /&gt;
First, you should have the database owned by a normal user account.  Use your normal Unix username, if you like; it's a common thing to do.  Then create the database user that Mediawiki will use, and then create the schema and give the user permissions to use that schema.  If you're using the default PostgreSQL schema, &amp;quot;public&amp;quot;, then you need not create it, but you should still grant the user permissions to use it&lt;br /&gt;
&lt;br /&gt;
 '''dbhostshell'''$  createdb ''databasename''&lt;br /&gt;
 CREATE &lt;br /&gt;
 '''dbhostshell'''$  psql ''databasename''&lt;br /&gt;
 &lt;br /&gt;
 databasename=# create user ''databaseuser'' with encrypted password ''databasepassword'';&lt;br /&gt;
 CREATE USER&lt;br /&gt;
 databasename=# create schema ''schemaname'';    -- if not &amp;quot;public&amp;quot;&lt;br /&gt;
 CREATE SCHEMA&lt;br /&gt;
 databasename=# grant create, usage on schema ''schemaname'' to ''databaseuser'';&lt;br /&gt;
 GRANT&lt;br /&gt;
 databasename=# \q&lt;br /&gt;
&lt;br /&gt;
Now, edit your '''pg_hba.conf''' file and set it so the database user on the web server can authenticate to the database.  This can be tricky.  Consult PostgreSQL documentation for details, but this author is using a local server and his file contains this:&lt;br /&gt;
&lt;br /&gt;
 # TYPE  DATABASE     USER        IP-ADDRESS       IP-MASK          METHOD&lt;br /&gt;
 local   chadwikitwo  mediawiki                                     md5&lt;br /&gt;
&lt;br /&gt;
To verify that database connectivity works, try one of these:&lt;br /&gt;
&lt;br /&gt;
 '''webhostshell'''$  psql ''databasename'' -U ''databaseuser'' -h ''databaseserveraddress''&lt;br /&gt;
 Password:  ''databasepassword''&lt;br /&gt;
or&lt;br /&gt;
 '''webhostshell'''$  psql ''databasename'' -U ''databaseuser''   # for local Unix domain connections&lt;br /&gt;
 Password:  ''databasepassword''&lt;br /&gt;
&lt;br /&gt;
If you can reach the database using the username and password from the host that's running the web server, then you're ready to submit the form.  &lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
The form in ''config/index.php'' will run and perhaps give a few warnings.&lt;br /&gt;
&lt;br /&gt;
''(More to come.)''&lt;/div&gt;</summary>
		<author><name>141.233.47.218</name></author>
		
	</entry>
</feed>