| | 1 | Up: [wiki:IPPatTheROE IPP at the ROE] |
| | 2 | |
| | 3 | = Initialising the IPP Database = |
| | 4 | |
| | 5 | == Ensure MySQL is installed == |
| | 6 | |
| | 7 | IPP used !MySQL as it's database server. !MySQL is not installed by default. Check first, for: |
| | 8 | |
| | 9 | * `/usr/bin/mysql` |
| | 10 | * `/usr/bin/mysqladmin` |
| | 11 | * `/usr/sbin/mysqld` |
| | 12 | |
| | 13 | If those files do not exist, submit a helpdesk ticket requesting the packages: |
| | 14 | |
| | 15 | * `mysql-client` |
| | 16 | * `mysql-server` |
| | 17 | |
| | 18 | Upon installation, a root password will be generated and supplied to you. Note, "root" here means !MySQL administrator, not the "root" of the machine. |
| | 19 | |
| | 20 | Note that installing !MySQL from scratch in a user-owned directory is possibly, but running the server may never succeed if the file `/etc/mysql/my.cnf` or `/etc/my.cnf` already exists, as it does by default on our Debian machines. |
| | 21 | |
| | 22 | == Initialise the IPP Database == |
| | 23 | |
| | 24 | We will need the `dbadmin` tool in the IPP source directory. I don't know why it is not installed along with the rest of the IPP executables. Find it in `$SRCDIR/trunk/ippMonitor/scripts/dbadmin` . |
| | 25 | |
| | 26 | First we will generate the user `ipp` (could be anything else) with the password `aloha`. This step will require the !MySQL root password. Horst and I have the password for eday. |
| | 27 | |
| | 28 | Then, generate a project belonging to `ipp`. Here, I'm calling it `testdb`. |
| | 29 | |
| | 30 | So: |
| | 31 | |
| | 32 | 1. `cd $SRCDIR/trunk/ippMonitor/scripts/dbadmin` |
| | 33 | 2. `./dbadmin init localhost ipp aloha` |
| | 34 | 3. `./dbadmin project localhost ipp testdb` |
| | 35 | |
| | 36 | Step 3 will require `ipp`'s password: `aloha` . |
| | 37 | |
| | 38 | -- EricTittley - 2009-11-06 |