DataBase » History » Version 1
Anonymous, 10/01/2007 11:00 AM
1 | 1 | Anonymous | == Database Configuration == |
---|---|---|---|
2 | 1 | Anonymous | Make sure that the MySQL daemon is running, and that it will start at boot time: |
3 | 1 | Anonymous | {{{ |
4 | 1 | Anonymous | /sbin/service mysqld start |
5 | 1 | Anonymous | /sbin/chkconfig --add mysqld |
6 | 1 | Anonymous | /sbin/chkconfig mysqld on |
7 | 1 | Anonymous | }}} |
8 | 1 | Anonymous | |
9 | 1 | Anonymous | Make sure that you have access to the MySQL database management as ''root'' and login as user ''root ''with the corresponding password: |
10 | 1 | Anonymous | {{{ |
11 | 1 | Anonymous | mysql -u root -p |
12 | 1 | Anonymous | }}} |
13 | 1 | Anonymous | |
14 | 1 | Anonymous | Create new mysql users ''procksi_user ''and ''procksi_admin'': |
15 | 1 | Anonymous | {{{ |
16 | 1 | Anonymous | USE mysql; |
17 | 1 | Anonymous | INSERT INTO user SET host='localhost', user='procksi_user', password=PASSWORD('''password_procksi_user'''); |
18 | 1 | Anonymous | INSERT INTO user SET host='localhost', user='procksi_admin', password=PASSWORD('''password_procksi_admin'''); |
19 | 1 | Anonymous | FLUSH PRIVILEGES; |
20 | 1 | Anonymous | }}} |
21 | 1 | Anonymous | |
22 | 1 | Anonymous | Repeat these steps analogously for ''procksi0-priv'', ''procksi1-priv'', and ''procksi2-priv.'' |
23 | 1 | Anonymous | |
24 | 1 | Anonymous | Create a new database: |
25 | 1 | Anonymous | {{{ |
26 | 1 | Anonymous | CREATE DATABASE procksi_latest; |
27 | 1 | Anonymous | }}} |
28 | 1 | Anonymous | |
29 | 1 | Anonymous | Give privileges to users ''procksi_user ''and ''procksi_admin'' for all compute nodes: |
30 | 1 | Anonymous | {{{ |
31 | 1 | Anonymous | GRANT ALL ON procksi_latest.* TO procksi_admin@localhost WITH GRANT OPTION; |
32 | 1 | Anonymous | GRANT SELECT, UPDATE, INSERT, DELETE ON procksi_latest.* TO procksi_user@localhost; |
33 | 1 | Anonymous | GRANT ALL ON procksi_latest.* TO procksi_admin@procksi0.cs.nott.ac.uk WITH GRANT OPTION; |
34 | 1 | Anonymous | GRANT SELECT, UPDATE, INSERT, DELETE ON procksi_latest.* TO procksi_user@procksi0.cs.nott.ac.uk; |
35 | 1 | Anonymous | GRANT SELECT, UPDATE, INSERT, DELETE ON procksi_latest.* TO procksi_user@procksi1.cs.nott.ac.uk; |
36 | 1 | Anonymous | GRANT SELECT, UPDATE, INSERT, DELETE ON procksi_latest.* TO procksi_user@procksi2.cs.nott.ac.uk; |
37 | 1 | Anonymous | FLUSH PRIVILEGES; |
38 | 1 | Anonymous | }}} |
39 | 1 | Anonymous | |
40 | 1 | Anonymous | If you change the password for ''procksi_user'', please make sure that you also change it in ''/home/procksi/latest/config/main.ini'' |
41 | 1 | Anonymous | |
42 | 1 | Anonymous | Import the main database ''procksi_latest'' from the backup given in ''/home/procksi/RELEASE/admin'': |
43 | 1 | Anonymous | {{{ |
44 | 1 | Anonymous | msysql -u procksi_admin -p procksi_latest < procksi_latest.sql |
45 | 1 | Anonymous | }}} |
46 | 1 | Anonymous | |
47 | 1 | Anonymous | In order to create a database ''procksi_test'' for the test version, repeat the previous steps and set the privileges accordingly. |