Open main menu

CDOT Wiki β

Changes

Fedora Arm Secondary Architecture/Koji Database

1,130 bytes added, 13:07, 16 April 2010
no edit summary
http://fedoraproject.org/wiki/Koji/ServerHowTo
My team members and I were able for create the database as required. Below is the commands executed to create that database. root@hongkong# 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: root@hongkong# useradd kojiroot@hongkong# passwd -d kojiroot@hongkong# su - postgrespostgres@hongkong# createuser koji Shall the new role be a superuser? (y/n) nShall the new role be allowed to create databases? (y/n) nShall the new role be allowed to create more new roles?(y/n) npostgres@hongkong# createdb -O koji kojipostgres@hongkong# logoutroot@hongkong# su - kojikoji@hongkong$ psql koji koji < /usr/share/doc/koji*/docs/schema.sqlkoji@hongkong$ exitNext to be covered is editing the “/var/lib/pgsql/data/pg_hba.conf” to authorize Koji-web and Koji-Hub resources.
1
edit