Project

General

Profile

Database Server Installation » History » Version 2

Amber Herold, 03/15/2010 04:11 PM

1 1 Amber Herold
h1. Setup MySQL database
2
3
Refer to [[Start_with_existing_ANY_Linux_flavor_OS#2-Setup-MySQL-databases|Setup MySQL databases]]
4 2 Amber Herold
Note: the above link includes unnessary steps....
5
Start Here: http://emg.nysbc.org/documentation/leginon/bk02ch04s07.php
6 1 Amber Herold
7
h2. Configure MySQL 
8
9
Edit the configuration file:
10
11
<pre>
12
$ sudo nano /etc/my.cnf
13
</pre>
14
15
Add or edit the following lines:
16
17
<pre>
18
query_cache_type = 1
19
query_cache_size = 100M
20
query_cache_limit= 100M
21
</pre>
22
23
Restart MySQL
24
25
<pre>
26
$ sudo /sbin/service mysqld restart
27
</pre>
28
29
h2. Configure phpMyAdmin 
30
31
Edit the phpMyAdmin config file:
32
33
<pre>
34
$ sudo nano /etc/phpMyAdmin/config.inc.php
35
</pre> 
36
37
and change the following lines:
38
39
<pre>
40
$cfg['Servers'][$i]['AllowRoot']     = FALSE;
41
</pre>
42
43
Edit the phpMyAdmin apache config file:
44
45
<pre>
46
$ sudo nano /etc/httpd/conf.d/phpMyAdmin.conf
47
</pre>
48
49
and change the following lines:
50
51
<pre>
52
<Directory /usr/share/phpMyAdmin/>
53
   order deny,allow
54
   deny from all
55
   allow from 127.0.0.1
56
   allow from YOUR_IP_ADDRESS
57
</Directory>
58
</pre>