Created
April 24, 2012 03:06
-
-
Save huogerac/2475868 to your computer and use it in GitHub Desktop.
Procedimento para instalar Postgres
This file contains 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
SERVER | |
------ | |
sudo apt-get install libpq-dev python-dev | |
sudo apt-get install postgresql | |
INTERFACE ADMINISTRATIVA | |
------------------------ | |
sudo apt-get install pgadmin3 | |
CONFIGURAR USUÁRIO | |
------------------------------- | |
sudo -u postgres psql postgres | |
\password postgres | |
ou para criar outro usuário: | |
sudo -u postgres createuser --superuser $USER | |
CRIAR DATABASE | |
-------------- | |
sudo -u postgres createdb [database] | |
INSTALAÇÃO DO DRIVER NO DJANGO | |
------------------------------ | |
pip install psycopg2 | |
referência: | |
https://help.ubuntu.com/community/PostgreSQL | |
http://www.saltycrane.com/blog/2009/07/using-psycopg2-virtualenv-ubuntu-jaunty/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment