- 论坛徽章:
- 0
|
小版主杀手 发表于 2011-12-23 11:19 ![]()
感觉是程序问题,贴下配置看看
[mysqld]
port = 3306
socket = /tmp/mysql.sock
#skip-locking
skip-external-locking
skip-name-resolve
back_log = 500
key_buffer_size = 1024M
max_allowed_packet = 64M
table_open_cache = 512
sort_buffer_size = 8M
read_buffer_size = 8M
join_buffer_size = 8M
read_rnd_buffer_size = 16M
myisam_sort_buffer_size = 64M
thread_cache_size = 64
query_cache_size= 64M
query_cache_limit = 2M
log_slow_queries= /var/log/slow_query.log
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
tmp_table_size = 256M
max_connections = 1000
max_connect_errors = 10000000
wait_timeout=100
interactive_timeout = 100
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin
# binary logging format - mixed recommended
binlog_format=mixed
mysql的配置。 |
|