DataBase » History » Version 8

Anonymous, 08/05/2008 06:00 PM

1 8 Anonymous
2 8 Anonymous
h2. Database Configuration
3 8 Anonymous
 
4 8 Anonymous
Make sure that the [[MySQL]] daemon is running, and that it will start at boot time: 
5 8 Anonymous
<pre>
6 1 Anonymous
/sbin/service mysqld start 
7 1 Anonymous
/sbin/chkconfig --add mysqld 
8 1 Anonymous
/sbin/chkconfig mysqld on 
9 8 Anonymous
</pre>
10 1 Anonymous
	 	 
11 8 Anonymous
Make sure that you have access to the [[MySQL]] database management as _root_ and login as user _root _with the corresponding password: 
12 8 Anonymous
<pre>
13 1 Anonymous
mysql -u root -p 
14 8 Anonymous
</pre>
15 8 Anonymous
Login/Passwords can be found on the [[secretAuthentication|Authentication]] page in the Restricted Area.
16 1 Anonymous
	 	 
17 8 Anonymous
Create new mysql users _procksi_user _and _procksi_admin_: 
18 8 Anonymous
<pre>
19 1 Anonymous
USE mysql; 
20 8 Anonymous
INSERT INTO user SET host='localhost', user='procksi_user', password=PASSWORD(*password_procksi_user*); 
21 8 Anonymous
INSERT INTO user SET host='localhost', user='procksi_admin', password=PASSWORD(*password_procksi_admin*); 
22 1 Anonymous
FLUSH PRIVILEGES; 
23 8 Anonymous
</pre>
24 8 Anonymous
Login/Passwords can be found on the [[secretAuthentication|Authentication]] page in the Restricted Area.
25 1 Anonymous
	 	 
26 8 Anonymous
Repeat these steps analogously for _procksi0-priv_, _procksi1-priv_, and _procksi2-priv._ 
27 1 Anonymous
	 	 	 
28 1 Anonymous
Create a new database: 
29 8 Anonymous
<pre>
30 2 Anonymous
CREATE DATABASE procksi_latest; 
31 8 Anonymous
</pre>
32 1 Anonymous
	 	 
33 8 Anonymous
Give privileges to users  _procksi_user _and _procksi_admin_ for all compute nodes: 
34 8 Anonymous
<pre>
35 1 Anonymous
GRANT ALL ON procksi_latest.* TO procksi_admin@localhost WITH GRANT OPTION; 
36 7 Anonymous
GRANT SELECT, UPDATE, INSERT, DELETE ON procksi_latest.* TO procksi_user@localhost; 
37 1 Anonymous
GRANT SELECT, UPDATE, INSERT, DELETE ON procksi_latest.* TO "procksi_user"@"%.procksi.local"; 
38 5 Anonymous
FLUSH PRIVILEGES; 
39 8 Anonymous
</pre>
40 1 Anonymous
	 	 
41 8 Anonymous
If you change the password for _procksi_user_, please make sure that you also change it in _/home/procksi/latest/config/main.ini_ 
42 6 Anonymous
43 8 Anonymous
Import the main database _procksi_latest_ from the backup given in _/home/procksi/RELEASE/sql_. On the command line, enter the following commands and provide the _procksi_admin_ password if asked:
44 8 Anonymous
<pre>
45 6 Anonymous
cd /home/procksi/RELEASE/admin
46 1 Anonymous
./loadDatabase.sh
47 8 Anonymous
</pre>
48 1 Anonymous
49 1 Anonymous
Set the PBS nodes attribues so that all tasks will be executed on slave nodes only and not on the master node. After logging in into mysql:
50 8 Anonymous
<pre>
51 1 Anonymous
UPDATE modules SET pbs_node = 'slave';
52 8 Anonymous
</pre>
53 1 Anonymous
54 8 Anonymous
In order to create a database _procksi_test_ for the test version, repeat the previous steps and set the privileges accordingly.