小编Tho*_*man的帖子

MySQL 优化

我的网络服务器使用专用主机:

Intel(R) Xeon(R) CPU E5620 8core
12Gram
Centos32bit/Driectadmin
DISK SAS 80G
Php-cgi
Run Code Online (Sandbox Code Playgroud)

该主机正在运行一个网站

Use wordpress 2.92(+plugin cache...)
Database size 600MB
only 100online
Run Code Online (Sandbox Code Playgroud)

我的网站运行非常缓慢。请帮我配置my.cnf。

    [mysqld]
user=mysql
key_buffer=128M
set-variable = max_connections=1000
socket          = /var/lib/mysql/mysql.sock
key_buffer =32M
table_cache = 1024
open_files_limit = 16344
join_buffer_size = 8M
read_buffer_size = 8M
sort_buffer_size = 8M
tmp_table_size=512M
read_rnd_buffer_size=8M
max_heap_table_size=256M
#myisam_sort_buffer_size=256M
thread_cache_size=8
thread_cache=32
query_cache_type=1
query_cache_limit=1024M
query_cache_size=1024M
thread_concurrency = 16
wait_timeout = 10
connect_timeout = 10
interactive_timeout = 10
long_query_time=1
log-slow-queries = /var/log/mysqlslowqueries.log
max_allowed_packet=32M
skip-innodb
[myisamchk]
key_buffer = 64M …
Run Code Online (Sandbox Code Playgroud)

mysql apache-2.2

3
推荐指数
1
解决办法
875
查看次数

标签 统计

apache-2.2 ×1

mysql ×1