Post Reply  Post Thread 
Pages (2): « First [1] 2 Next > Last »
Server Optimization Help for HEAVY MySQL load
freesouljah
Junior Member
**

Posts: 26
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 0
Post: #1
Question Server Optimization Help for HEAVY MySQL load

Hi there,

I am hoping you can help me out of a jam. Our server is currently running one high traffic site (15,000+ uniques a day, if the server doesn't crash and lock people out). Most of those hits are accessing a bridged phpBB/Coppermine MySQL database.

I just moved mysql to its own drive, which doesn't seem to have helped much....which is why I need help/advice on optimizing our server.



So here it goes (these numbers are not from peak hours):

---- Server Specs ----
Intel Celeron – 2.4Ghz
2G Ram
2x 80GB ATA 100 7200 RPM HDD (one just for mysql)
RedHat Linux
Cpanel/WHM
Apache 1.3.34
MySQL 5.0.18
PHP 4.4.1
Zend Optimizer
eAccelerator
--------------------

Current Apache Configuration
---- /usr/local/apache/conf/httpd.conf -----

httpd.conf Wrote:
Timeout 30
KeepAlive On
MaxKeepAliveRequests 400
KeepAliveTimeout 2
MinSpareServers 15
MaxSpareServers 20
StartServers 10
MaxClients 350
MaxRequestsPerChild 50

---------------------


Current MySQL Configuration
---- /etc/my.cnf ----

my.cnf Wrote:
[mysqld]
pid-file = /mnt/drive2/var/lib/mysql/mysqld.pid
socket=/mnt/drive2/var/lib/mysql/mysql.sock

datadir = /mnt/drive2/var/lib/mysql
#basedir = /mnt/drive2/var/lib/mysql
skip-locking
skip-innodb
skip-networking
safe-show-database
query_cache_limit=1M
query_cache_size=64M ## 32MB for every 1GB of RAM
query_cache_type=1
query_prealloc_size = 16384
query_alloc_block_size = 16384
max_user_connections=250
max_connections=250
interactive_timeout=10
wait_timeout=30
connect_timeout=10
thread_cache_size=256
key_buffer=16M ## 64MB for every 1GB of RAM
join_buffer=1M
net_buffer_length=160K
max_connect_errors=10
max_allowed_packet=64M
table_cache=1800
record_buffer=1M
sort_buffer_size=2M ## 1MB for every 1GB of RAM
read_buffer_size=1M ## 1MB for every 1GB of RAM
sort_buffer_size=2M ## 1MB for every 1GB of RAM
read_buffer_size=1M ## 1MB for every 1GB of RAM
read_rnd_buffer_size=1M ## 1MB for every 1GB of RAM
tmp_table_size=64M
thread_concurrency=2 ## Number of CPUs x 2
myisam_sort_buffer_size=64M
server-id=1
log_slow_queries=/mnt/drive2/var/lib/mysql/mysql-slow-queries.log
long_query_time=2
collation-server=latin1_general_ci
old_passwords=1
innodb_lock_wait_timeout=5
max_connect_errors=10

[mysql.server]
user=mysql
datadir = /mnt/drive2/var/lib/mysql

old-passwords = 1

[safe_mysqld]
err-log=/mnt/drive2/var/lib/mysql/mysqld.log
pid-file=/mnt/drive2/var/lib/mysql/mysql.pid
open_files_limit=8192
old-passwords=1


[mysqldump]
quick
max_allowed_packet=16M

[mysql]
no-auto-rehash
#safe-updates

[isamchk]
key_buffer=64M
sort_buffer=32M
read_buffer=16M
write_buffer=16M

[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[mysqlhotcopy]
interactive-timeout

[client]
socket=/mnt/drive2/var/lib/mysql/mysql.sock


---------------------




free -m Wrote:
total used free shared buffers cached
Mem: 2009 1915 94 0 20 126
-/+ buffers/cache: 1768 241
Swap: 1992 1791 200


httpd status Wrote:
Server Version: Apache/1.3.34 (Unix) mod_auth_passthrough/1.8
mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.1 FrontPage/5.0.2.2635
mod_ssl/2.8.25 OpenSSL/0.9.7a
Server Built: Mar 16 2006 18:09:42
_________________________________________

Current Time: Wednesday, 07-Jun-2006 05:14:26 PDT
Restart Time: Wednesday, 07-Jun-2006 04:29:17 PDT
Parent Server Generation: 11
Server uptime: 45 minutes 9 seconds
Total accesses: 23008 - Total Traffic: 186.4 MB
CPU Usage: u75.79 s9.08 cu.06 cs.01 - 3.14% CPU load
8.49 requests/sec - 70.5 kB/second - 8.3 kB/request
56 requests currently being processed, 23 idle servers


top Wrote:
05:21:39 up 1 day, 5:29, 1 user, load average: 24.54, 18.04, 16.98
249 processes: 226 sleeping, 23 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 43.2% 0.0% 29.1% 0.4% 1.5% 25.5% 0.0%
Mem: 2058068k av, 1835116k used, 222952k free, 0k shrd, 18736k buff
1576988k actv, 135420k in_d, 27540k in_c
Swap: 2040212k av, 1177712k used, 862500k free 93492k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
6 root 17 0 0 0 0 RW 19.1 0.0 15:48 0 kscand
31966 mysql 15 0 1962M 1.3G 2088 R 8.1 64.6 0:16 0 mysqld
32149 mysql 15 0 1964M 1.3G 2088 S 2.8 64.7 0:02 0 mysqld
32177 mysql 16 0 1964M 1.3G 2088 R 2.7 64.7 0:01 0 mysqld
32033 mysql 15 0 1962M 1.3G 2088 S 2.5 64.6 0:07 0 mysqld
32034 mysql 15 0 1962M 1.3G 2088 R 2.5 64.6 0:07 0 mysqld
32038 mysql 15 0 1964M 1.3G 2088 S 2.5 64.7 0:04 0 mysqld
32145 mysql 15 0 1964M 1.3G 2088 R 2.5 64.7 0:02 0 mysqld
32183 mysql 15 0 1964M 1.3G 2088 S 2.5 64.7 0:02 0 mysqld
32150 mysql 15 0 1964M 1.3G 2088 S 2.3 64.7 0:02 0 mysqld
31958 mysql 15 0 1964M 1.3G 2084 D 2.0 64.7 0:11 0 mysqld
32168 mysql 15 0 1964M 1.3G 2088 S 1.5 64.7 0:02 0 mysqld
32220 nobody 16 0 9568 5924 3268 S 1.2 0.2 0:00 0 httpd
32056 mysql 16 0 1964M 1.3G 2088 R 1.1 64.7 0:04 0 mysqld
32250 nobody 15 0 6848 2068 1464 R 0.9 0.1 0:00 0 httpd
32037 mysql 15 0 1964M 1.3G 2088 S 0.7 64.7 0:07 0 mysqld
32132 mysql 15 0 1964M 1.3G 2088 S 0.7 64.7 0:05 0 mysqld
32141 mysql 15 0 1964M 1.3G 2088 S 0.7 64.7 0:02 0 mysqld
32218 root 15 0 1308 1308 920 R 0.7 0.0 0:00 0 top
32166 nobody 15 0 11756 8112 5136 S 0.6 0.3 0:00 0 httpd
32221 nobody 15 0 9240 5588 3016 S 0.6 0.2 0:00 0 httpd
32011 nobody 15 0 9928 5916 3372 S 0.4 0.2 0:00 0 httpd
32058 nobody 15 0 10284 6536 3608 S 0.4 0.3 0:01 0 httpd
32144 mysql 16 0 1964M 1.3G 2088 R 0.4 64.7 0:01 0 mysqld
32169 nobody 15 0 13020 9464 6028 S 0.4 0.4 0:00 0 httpd
32187 nobody 15 0 6800 2016 1416 S 0.4 0.0 0:00 0 httpd
1768 root 15 0 0 0 0 RW 0.3 0.0 0:38 0 kjournald
31681 nobody 15 0 11816 7788 4980 S 0.3 0.3 0:01 0 httpd
32007 nobody 15 0 11580 7956 4756 S 0.3 0.3 0:00 0 httpd
32088 nobody 15 0 13416 9876 5988 S 0.3 0.4 0:00 0 httpd
32089 nobody 15 0 13824 9M 6004 S 0.3 0.4 0:01 0 httpd
32188 nobody 15 0 9212 5556 2980 S 0.3 0.2 0:00 0 httpd
32226 nobody 15 0 9020 5324 2880 S 0.3 0.2 0:00 0 httpd
32231 nobody 15 0 9260 5492 3156 S 0.3 0.2 0:00 0 httpd
31683 nobody 15 0 12880 8900 5632 S 0.1 0.4 0:01 0 httpd
31684 nobody 15 0 12096 8000 4620 S 0.1 0.3 0:01 0 httpd
31964 mysql 15 0 1962M 1.3G 2088 R 0.1 64.6 0:18 0 mysqld
31967 nobody 15 0 12860 8956 5920 S 0.1 0.4 0:01 0 httpd
32001 nobody 15 0 13260 9664 6184 S 0.1 0.4 0:01 0 httpd
32002 nobody 15 0 12660 8756 5472 S 0.1 0.4 0:01 0 httpd
32006 nobody 15 0 10852 7244 4392 S 0.1 0.3 0:00 0 httpd



Thanks Cool


06-07-2006 12:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 221
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #2
RE: Server Optimization Help for HEAVY MySQL load

Change your mysqld section in my.cnf as follows:

Code:
[mysqld]
pid-file = /mnt/drive2/var/lib/mysql/mysqld.pid
socket=/mnt/drive2/var/lib/mysql/mysql.sock

datadir = /mnt/drive2/var/lib/mysql
#basedir = /mnt/drive2/var/lib/mysql
skip-locking
skip-innodb
skip-networking
safe-show-database
query_cache_limit=1M
query_cache_size=32M
query_cache_type=1
#query_prealloc_size = 16384
#query_alloc_block_size = 16384
max_user_connections=250
max_connections=250
interactive_timeout=50
wait_timeout=50
connect_timeout=10
thread_cache_size=32
key_buffer=192MB
net_buffer_length=160K
max_connect_errors=10
max_allowed_packet=64M
table_cache=1500
join_buffer=1M
record_buffer=768k
sort_buffer_size=1M
read_buffer_size=768k
read_rnd_buffer_size=768k
tmp_table_size=32M
thread_concurrency=2 ## Number of CPUs x 2
myisam_sort_buffer_size=32M
server-id=1
log_slow_queries=/mnt/drive2/var/lib/mysql/mysql-slow-queries.log
long_query_time=10
collation-server=latin1_general_ci
old_passwords=1


Second, optimize your most heavily accessed MySQL databases using phpMyAdmin or by manually executing the optimize queries.

You will have to disable your access and error logs as a last option, and will have to turn to an external statistic tools such as google analytics. Since your site isn't offering media, that's quite useful solution in your case.

Another problem here is that a celeron 2.4 isn't powerful enough for handling such loads in normal conditions.

Anyways, good luck with the optimizations and let me know if this helps.

06-07-2006 04:20 PM
Find all posts by this user Quote this message in a reply
freesouljah
Junior Member
**

Posts: 26
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 0
Post: #3
RE: Server Optimization Help for HEAVY MySQL load

There has been a definite change: no crashing...at least for the small amount of time I have been monitoring it. One thing I noticed is that iowait is fluxuating higher than before, sometimes 75%+. I will keep an eye on it and make sure all is well.

For now Google analytics is invite only, so that solution will have to wait.


Thinking

So its mainly the fact that the server is running on a 2.4GHz Celeron that is dragging the site to a halt?

Hmmm....would it make a huge difference to be running an Intel 2.4GHz Pentium 4 Processor? And on top of that how much effect will 2.8, 3.2, 3.4 GHz have on the everything? What about an Intel Pentium D 950 Processor?


Thanks for all your help. Clapping


06-08-2006 10:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 221
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #4
RE: Server Optimization Help for HEAVY MySQL load

Try keeping an eye on memory and CPU statistics (as explained in my article on server overloading). Use the command free -m to keep track of free memory buffers (read my article to be able to understand the output).

The new configuration file shouldn't result in high IO_WAIT. You should consider disabling logs and switching to a 3rd party analytics solution. Just google it, you don't need to wait for google anlytics, there are many similar/competitive solutions out there.

CPU isn't the only issue here. It's like everything combined causing the issues. Sure if you upgrade your CPU to 2.4ghz, it's going to help a bit. BTW, which dedicated company are you with? If you wish, you can get a quality and affordable server upgrade from layeredtech.com (my personal favorite!).

Please post your free -m and top stats now so that I can see if there are any improvements. Your server had previously been swapping badly, if it's still the same case, the first thing you should do is upgrade your RAM. And if you have some more cash available, upgrade CPU too.

So it's like:

1. Upgrade your RAM to at least by +512mb (according to stats you posted, it had been using much swap.)
2. Upgrade your CPU to 2.8ghz P4 or AMD 3000+.
3. Upgrade your hard drives to SATA.

I would recommend on acting on the first one, and the rest depends on the budget you got. So at least upgrade your RAM.

06-08-2006 01:07 PM
Find all posts by this user Quote this message in a reply
freesouljah
Junior Member
**

Posts: 26
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 0
Post: #5
RE: Server Optimization Help for HEAVY MySQL load

I will look at the company you suggested, right now I am at servermatrix/the planet.

I will also look for the anaytics programs.

Here are the outputs you asked for

free -m Wrote:
total used free shared buffers cached
Mem: 2009 1972 36 0 17 132
-/+ buffers/cache: 1822 186
Swap: 1992 869 1122


top Wrote:
07:05:57 up 8:26, 1 user, load average: 28.90, 20.49, 17.67
262 processes: 249 sleeping, 12 running, 1 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 28.2% 0.5% 11.1% 0.5% 0.0% 59.5% 0.0%
Mem: 2058068k av, 2047496k used, 10572k free, 0k shrd, 17384k buff
1605780k actv, 306888k in_d, 29708k in_c
Swap: 2040212k av, 1096476k used, 943736k free 242088k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
6 root 16 0 0 0 0 SW 27.7 0.0 9:02 0 kscand
30042 mysql 16 0 2175M 1.4G 2032 R 7.5 71.9 0:08 0 mysqld
30002 mysql 15 0 2172M 1.4G 2036 D 4.0 71.9 0:13 0 mysqld
30051 mysql 15 0 2175M 1.4G 2032 D 2.0 71.9 0:06 0 mysqld
30286 nobody 16 0 6656 4880 2404 S 2.0 0.2 0:00 0 httpd
30277 nobody 15 0 7072 5308 2816 S 1.5 0.2 0:00 0 httpd
30282 nobody 15 0 6780 5016 2504 S 1.5 0.2 0:00 0 httpd
30294 root 15 0 1320 1320 920 R 1.5 0.0 0:00 0 top
30014 mysql 15 0 2175M 1.4G 2032 D 1.0 71.9 0:09 0 mysqld
30025 nobody 16 0 11252 9164 5560 S 1.0 0.4 0:02 0 httpd
30020 nobody 15 0 11176 9144 5772 S 0.5 0.4 0:02 0 httpd
30186 mysql 15 0 2175M 1.4G 2032 R 0.5 71.9 0:01 0 mysqld
30201 nobody 15 0 10848 9196 5592 S 0.5 0.4 0:00 0 httpd
30227 nobody 16 0 10544 8904 5428 S 0.5 0.4 0:00 0 httpd
30228 nobody 16 0 9496 7740 4524 S 0.5 0.3 0:00 0 httpd
30229 nobody 16 0 10560 8936 5348 S 0.5 0.4 0:00 0 httpd
30255 nobody 15 0 7736 5996 2788 S 0.5 0.2 0:00 0 httpd
1 root 15 0 128 88 56 S 0.0 0.0 0:04 0 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:01 0 keventd
3 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd
4 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
7 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
5 root 15 0 0 0 0 SW 0.0 0.0 2:24 0 kswapd
8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kupdated
9 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
17 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 scsi_eh_0
18 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 scsi_eh_1
21 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
100 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
3173 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
3174 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
3175 root 15 0 0 0 0 SW 0.0 0.0 0:31 0 kjournald
3176 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
3177 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
3178 root 15 0 0 0 0 SW 0.0 0.0 0:01 0 kjournald
3520 root 15 0 268 200 176 S 0.0 0.0 0:00 0 syslogd
3524 root 15 0 192 124 120 S 0.0 0.0 0:00 0 klogd
3581 nobody 15 0 748 212 120 S 0.0 0.0 0:00 0 proftpd
5768 root 15 0 716 296 220 S 0.0 0.0 0:00 0 cupsd
5790 root 16 0 376 128 120 S 0.0 0.0 0:00 0 sshd
5804 root 15 0 316 184 180 S 0.0 0.0 0:00 0 xinetd


06-08-2006 02:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
freesouljah
Junior Member
**

Posts: 26
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 0
Post: #6
RE: Server Optimization Help for HEAVY MySQL load

oh....its back to crashing again Sad


06-08-2006 02:52 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 221
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #7
RE: Server Optimization Help for HEAVY MySQL load

It seems like you really do need a RAM upgrade. Disable logs and try this alternate configuration file which will use less memory and rely somewhat on disk.

Code:
[mysqld]
pid-file = /mnt/drive2/var/lib/mysql/mysqld.pid
socket=/mnt/drive2/var/lib/mysql/mysql.sock

datadir = /mnt/drive2/var/lib/mysql
skip-locking
skip-innodb
skip-networking
query_cache_limit=1M
query_cache_size=32M
query_cache_type=1
max_connections=250
interactive_timeout=50
wait_timeout=50
connect_timeout=10
thread_cache_size=16
key_buffer=92MB
max_connect_errors=10
max_allowed_packet=32M
table_cache=1500
join_buffer=1M
sort_buffer_size=1M
read_buffer_size=768k
read_rnd_buffer_size=768k
tmp_table_size=16M
thread_concurrency=2 ## Number of CPUs x 2
myisam_sort_buffer_size=16M
server-id=1
log_slow_queries=/mnt/drive2/var/lib/mysql/mysql-slow-queries.log
long_query_time=10
collation-server=latin1_general_ci
old_passwords=1


Optimizations can help you by using up some other resources instead of a specific one. If you decrease ram assigned for few buffers, they're written on disk to the temporary directory as hidden files (usually /tmp) and that means more I/O usage. The problem with your server is currently everything's maxed out, RAM, Disk and CPU. Disabling logs will help somewhat.

Another thing you can do is, if your secondary mysql disk isn't on high I/O usage (you can install "iostat" to find out -- google it), is to change your temporary directory to the secondary disk as well.

# mkdir /mnt/drive2/tmp_dir
# chown mysql:mysql /mnt/drive2/tmp_dir

In my.cnf's [mysqld] section, add:
tmpdir = /mnt/drive2/tmp_dir

And restart the mysql. This should be of a little help if your secondary disk isn't already getting hammered (Tip: Do not use your secondary disk for backups.)

Well, servermatrix/theplanet is good if you need that that advanced Dos protection and similar stuff, but otherwise layeredtech can perform pretty good for you. I wouldn't recommend anything else, because I havn't personally used too many of them.

06-09-2006 01:26 PM
Find all posts by this user Quote this message in a reply
freesouljah
Junior Member
**

Posts: 26
Group: Registered
Joined: Jun 2006
Status: Offline
Reputation: 0
Post: #8
RE: Server Optimization Help for HEAVY MySQL load

I did as suggested with the tmpdir, shutting off logs, and changing the my.cnf again...and I put in for a gig more of ram. I am hoping that will be enough for now.

I was looking at layerdtech and their pricing and support SOUNDS good, but do they back it up...or is it all talk? If I came to them with the problems I am currently having, would they help me out like you are? Or would they shrug me off and send me elsewhere to find answers?


06-10-2006 04:15 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 221
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #9
RE: Server Optimization Help for HEAVY MySQL load

Generally, most of the hosts don't help you with load balancing and server optimizations. There are few which charge you way too high.

Well, layeredtech do have unmanaged support and they probably won't help you with server optimizations (infact, most dedicated hosting companies wont). Server optimization and taking care of the server is the responsibility of the server administrator.

The changes you have made should be enough. Considering you have added a GB of ram, please post your current free -m and top output so that it may be optimized better. The one I posted previously was memory friendly version that puts a bit of strain on Hard Drive, but now since you've added more memory you shouldn't be pushing your I/O over the limit.

06-10-2006 01:22 PM
Find all posts by this user Quote this message in a reply
bigboy
Junior Member
**

Posts: 5
Group: Registered
Joined: May 2006
Status: Offline
Reputation: 0
Post: #10
RE: Server Optimization Help for HEAVY MySQL load

httpd.conf


Quote:
Timeout 30
KeepAlive On
MaxKeepAliveRequests 400
KeepAliveTimeout 2
MinSpareServers 15
MaxSpareServers 20
StartServers 10
MaxClients 350
MaxRequestsPerChild 50



edit to

Quote:
Timeout 100
KeepAlive Off
MaxKeepAliveRequests 512
KeepAliveTimeout 15
StartServers 15
MinSpareServers 32
MaxSpareServers 64
MaxClients 512
MaxRequestsPerChild 0




Optimize MySQL (mysql4.1.19)

vi /etc/my.cnf

Quote:
[mysqld]
skip-locking
skip-innodb
query_cache_limit=1M
query_cache_size=32M
query_cache_type=1
max_connections=500
interactive_timeout=100
wait_timeout=100
connect_timeout=10
thread_cache_size=128
key_buffer=16M
join_buffer=1M
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=2M
read_buffer_size=2M
max_connect_errors=10
# Try number of CPU's*2 for thread_concurrency
thread_concurrency=2
myisam_sort_buffer_size=64M
log-bin
server-id=1

[safe_mysqld]
err-log=/var/log/mysqld.log
open_files_limit=8192

[mysqldump]
quick
max_allowed_packet=16M

[mysql]
no-auto-rehash
#safe-updates

[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M

[mysqlhotcopy]
interactive-timeout




Press ctrl-c to exit insert mode. Then press shift-Z shift-Z to save and quit. Restart mysqld:
Redhat:
/sbin/service mysqld restart


FreeBSD:
/usr/local/etc/rc.d/mysqld restart



done

Note that this guide is only for MySQL 4. There is a default my.cnf that comes with mysql that will work fine
cp -f /usr/share/mysql/my-huge.cnf /etc/my.cnf

06-13-2006 09:06 AM
Find all posts by this user Quote this message in a reply
Pages (2): « First [1] 2 Next > Last »
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: