Created
February 20, 2012 21:45
-
-
Save markprovan/1871671 to your computer and use it in GitHub Desktop.
Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ ~ initdb /usr/local/var/postgres | |
| The files belonging to this database system will be owned by user "mark". | |
| This user must also own the server process. | |
| The database cluster will be initialized with locale en_GB.UTF-8. | |
| The default database encoding has accordingly been set to UTF8. | |
| The default text search configuration will be set to "english". | |
| creating directory /usr/local/var/postgres ... ok | |
| creating subdirectories ... ok | |
| selecting default max_connections ... 20 | |
| selecting default shared_buffers ... 1600kB | |
| creating configuration files ... ok | |
| creating template1 database in /usr/local/var/postgres/base/1 ... ok | |
| initializing pg_authid ... ok | |
| initializing dependencies ... ok | |
| creating system views ... ok | |
| loading system objects' descriptions ... ok | |
| creating collations ... ok | |
| creating conversions ... ok | |
| creating dictionaries ... ok | |
| setting privileges on built-in objects ... ok | |
| creating information schema ... ok | |
| loading PL/pgSQL server-side language ... ok | |
| vacuuming database template1 ... ok | |
| copying template1 to template0 ... ok | |
| copying template1 to postgres ... ok | |
| WARNING: enabling "trust" authentication for local connections | |
| You can change this by editing pg_hba.conf or using the -A option the | |
| next time you run initdb. | |
| Success. You can now start the database server using: | |
| postgres -D /usr/local/var/postgres | |
| or | |
| pg_ctl -D /usr/local/var/postgres -l logfile start | |
| ➜ ~ alias start_pg="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start" | |
| ➜ ~ start_pg | |
| server starting | |
| ➜ ~ createuser socialkloud | |
| Shall the new role be a superuser? (y/n) y | |
| createuser: could not connect to database postgres: could not connect to server: No such file or directory | |
| Is the server running locally and accepting | |
| connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"? | |
| ➜ ~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment