Author: justi9
Date: 2007-11-14 14:19:38 -0500 (Wed, 14 Nov 2007)
New Revision: 1312
Modified:
mgmt/README
Log:
Corrections from Ted's trial run.
Modified: mgmt/README
===================================================================
--- mgmt/README 2007-11-14 16:11:17 UTC (rev 1311)
+++ mgmt/README 2007-11-14 19:19:38 UTC (rev 1312)
@@ -20,16 +20,23 @@
haven't already done it, you'll need to initialize the postgres
database and start it up:
+To initialize the postgresql data files:
+
$ su -
Password:
- # /sbin/service postgresql initdb
+ # su - postgres # Now you're the postgres user
+ $ initdb -D /var/lib/pgsql/data
+
+To start the postgresql service:
+
+ $ exit # Back to the root user
# /sbin/service postgresql start
Starting postgresql service: [ OK ]
Then you can create a database. First you have to switch to the
postgres user, and then you can use the create* scripts:
- # su - postgres
+ # su - postgres # Become the postgres user again
$ createuser --superuser exampleuser
CREATE ROLE
$ createdb --owner=exampleuser exampledb
Show replies by date