<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://okcomputer.antiflux.org/wiki/skins/common/feed.css?116"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Database Creation - Revision history</title>
		<link>http://okcomputer.antiflux.org/wiki/index.php?title=Database_Creation&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.12.0</generator>
		<lastBuildDate>Sat, 13 Jun 2026 14:29:48 GMT</lastBuildDate>
		<item>
			<title>Tim at 19:04, 29 September 2007</title>
			<link>http://okcomputer.antiflux.org/wiki/index.php?title=Database_Creation&amp;diff=2905&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:04, 29 September 2007&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Like MySQL, PostgreSQL has its own user database, but passwords are not necessary for its ident authentication.  &amp;lt;code&amp;gt;/usr/local/sbin/adduser.local&amp;lt;/code&amp;gt; creates a new Postgres user for each new system user.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Like MySQL, PostgreSQL has its own user database, but passwords are not necessary for its ident authentication.  &amp;lt;code&amp;gt;/usr/local/sbin/adduser.local&amp;lt;/code&amp;gt; creates a new Postgres user for each new system user.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Admin]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Sat, 29 Sep 2007 19:04:28 GMT</pubDate>			<dc:creator>Tim</dc:creator>			<comments>http://okcomputer.antiflux.org/wiki/Talk:Database_Creation</comments>		</item>
		<item>
			<title>Grant at 17:47, 15 March 2005</title>
			<link>http://okcomputer.antiflux.org/wiki/index.php?title=Database_Creation&amp;diff=1651&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== MySQL ==&lt;br /&gt;
&lt;br /&gt;
To create a database called &amp;quot;foo&amp;quot; for the user &amp;quot;bar&amp;quot;:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;code&amp;gt;mysqladmin create foo&amp;lt;/code&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;in mysql(1): &amp;lt;code&amp;gt;grant all on foo.* to bar@localhost identified by 'password'&amp;lt;/code&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
You can get a password from pwgen(1).  If the user already exists in the MySQL user database, you can omit the 'identified by' bit.&lt;br /&gt;
&lt;br /&gt;
== PostgreSQL ==&lt;br /&gt;
&lt;br /&gt;
The user can run &amp;lt;code&amp;gt;createdb foo&amp;lt;/code&amp;gt; themselves.  To create the database for them, use &amp;lt;code&amp;gt;sudo -u bar createdb foo&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Like MySQL, PostgreSQL has its own user database, but passwords are not necessary for its ident authentication.  &amp;lt;code&amp;gt;/usr/local/sbin/adduser.local&amp;lt;/code&amp;gt; creates a new Postgres user for each new system user.&lt;/div&gt;</description>
			<pubDate>Tue, 15 Mar 2005 17:47:21 GMT</pubDate>			<dc:creator>Grant</dc:creator>			<comments>http://okcomputer.antiflux.org/wiki/Talk:Database_Creation</comments>		</item>
	</channel>
</rss>