Created
September 21, 2012 06:18
-
-
Save wbond/3759992 to your computer and use it in GitHub Desktop.
Upgrade from PostgreSQL 9.1 to 9.2
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
apachectl stop | |
/root/src/postgresql-9.2.0/src/bin/pg_dump/pg_dumpall > /root/pgsql.backup | |
/etc/init.d/postgresql stop | |
mv /usr/local/pgsql /usr/local/pgsql.bak | |
cd /root/src/postgresql-9.2.0 | |
make install | |
su postgres | |
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data | |
exit | |
/etc/init.d/postgresql start | |
/usr/local/pgsql/bin/psql -d postgres -f /root/pgsql.backup | |
apachectl start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment