Quick and dirty postqresql commands
Posted by Sharar Ravitz in Postqresql on Tuesday, May 12, 2009
Want to make use of a postqresql database, say for speeding up Amarok? Here's a few quick and dirty commands.
Set the password for the postgres user (replace password with your password):
Add a system user (replace user with your system user name):
sudo -u postgres createuser -D -A -P user
Create a database (replace user with your user name and database with your desired database name):
sudo -u postgres createdb -O user database
Remove a database (replace database with the name of the database you wish to remove):
sudo -u postgres dropdb database
This entry was posted on Tuesday, May 12, 2009 at 8:55 AM and is filed under Postqresql. You can follow any responses to this entry through the RSS 2.0. You can leave a response.
Post a Comment