Changes

Jump to: navigation, search

Fedora Arm Secondary Architecture/Koji Database

223 bytes removed, 16:21, 17 April 2010
no edit summary
[[Category:Fedora ARM Secondary Architecture]][[Category:Winter 2010 SBR600]]= Goal =
To setup PostgreSQL for use with Koji.
The link below was very helpful in the setup of the PostgreSQL database.= Resources =
http* [[:fedora://fedoraproject.org/wiki/Koji/ServerHowTo|Koji Server HowTo page on Fedora wiki]]
My team members and I were able for create the database as required. Below is the commands executed to create that database.= Steps Performed =
root@hongkong# Create the database: yum install postgresql-server
Once installed you will then need to initialize the Database with the following command:
  root@hongkong# service postgresql initdb
Then start the Postgresql service with:
  root@hongkong# service postgresql start
At this point the Postgresql server is installed and operational provided no errors were reported with the database initialized. The next steps is to create a user named “koji”, set up Postgresql and populate the schema:
useradd koji
passwd -d koji
su - postgres
createuser koji
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles?(y/n) n
root@hongkong# useradd koji root@hongkong# passwd -d koji root@hongkong# su - postgres postgres@hongkong# createuser koji Shall the new role be a superuser? (y/n) n Shall the new role be allowed to create databases? (y/n) n Shall the new role be allowed to create more new roles?(y/n) n postgres@hongkong# createdb -O koji koji postgres@hongkong# logout root@hongkong# su - koji koji@hongkong$ psql koji koji < /usr/share/doc/koji*/docs/schema.sql koji@hongkong$ exit

Navigation menu