Test Block Top

The Blog...
Articles, Tips & Trick and Other Interesting Information...

04 Maret 2012

PostgreSQL Problem (could not connect to server: No such file or directory.)

"PostgreSQL Problem (could not connect to server: No such file or directory.)"



Cara mengatasinya, buka putty. Kemudian ketikkan command:

mv /var/lib/pgsql/data{,.backup}
/sbin/service postgresql initdb
/sbin/service postgresql start


[bash collapse="false"]
root@server5 [~]# mv /var/lib/pgsql/data{,.backup}
root@server5 [~]#
[/bash]

[bash collapse="false"]
root@server5 [~]# /sbin/service postgresql initdb
Initializing database: [ OK ]
root@server5 [~]#
[/bash]

[bash collapse="false"]
root@server5 [~]# /sbin/service postgresql start
Starting postgresql service: [ OK ]
root@server5 [~]#
[/bash]

Selesai.

Tidak ada komentar:

Posting Komentar

Loncat ke Atas ↑