MySQL optimization for this kind of server
Hello,Server Spec: Celeron 2.2Ghz + 512MB DDR Ram, IDE HDD, Fedora Linux 1, MySQL 4.0.18, Direct Admin
Only 1 site, PHP+MySQL Forum, PHP+MySQL Flash Guestbook
Code:
[mysqld] #datadir=/var/lib/mysql #socket=/var/lib/mysql/mysql.sock #skip-locking #skip-innodb query_cache_limit=1M query_cache_size=32M query_cache_type=1 max_connections=400 #interactive_timeout=100 wait_timeout=30 connect_timeout=15 thread_cache_size=128 key_buffer=32M join_buffer=1M max_allowed_packet=5M table_cache=1024 record_buffer=1M sort_buffer_size=2M read_buffer_size=2M max_connect_errors=10 thread_concurrency=2 [mysqldump] quick max_allowed_packet=16M [mysql] no-auto-rehash #safe-updates [isamchk] key_buffer=20M sort_buffer_size=20M read_buffer=2M write_buffer=2M [myisamchk] key_buffer=20M sort_buffer_size=20M read_buffer=2M write_buffer=2M [mysqlhotcopy] interactive-timeout
Thanks