- 论坛徽章:
- 0
|
配置:
Red Hat Enterprise Linux AS release 4 (Nahant Update 4) Kernel \r on an \m
内存:4G
mysql版本:mysql Ver 14.7 Distrib 4.1.20, for redhat-linux-gnu (i386) using readline 4.3
配置文件如下:
[client]
port = 3306
socket = /data/mysql/mysql.sock
#[mysql_cluster]
#ndb-connectstring=192.168.1.2
[mysqld]
#ndbcluster
#ndb-connectstring=192.168.1.2
basedir=/usr/local/mysql
datadir=/data/mysql
socket =/data/mysql/mysql.sock
pid-file=/data/mysql/ydon.cn.pid
lower_case_table_names=0
port = 3306
skip-locking
skip-name-resolve
key_buffer = 512M
max_allowed_packet = 64M
table_cache = 400
sort_buffer_size = 4M
read_buffer_size = 4M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 16
max_connections = 200
back_log = 50
#replication setting
log-bin = /data/binlog/
expire_logs_days = 3
server-id=6
max_binlog_size=1000M
#enable event
event_scheduler = 0
# for innodb settings
innodb_file_per_table
#innodb_data_file_path=ibdata1:50M:autoextend
#
# Set buffer pool size to 50-80% of your computer's memory
innodb_buffer_pool_size=512M
innodb_additional_mem_pool_size=32M
#
# Set the log file size to about 25% of the buffer pool size
innodb_log_file_size=128M
innodb_log_buffer_size=25M
innodb_flush_log_at_trx_commit=1
innodb_thread_concurrency=20
[mysql.server]
user=mysql
basedir=/usr/local/mysql
datadir=/data/mysql
socket =/data/mysql/mysql.sock
pid-file=/data/mysql/ydon.cn.pid
[mysqldump]
quick
max_allowed_packet = 16M
[safe_mysqld]
basedir=/usr/local/mysql
datadir=/data/mysql
socket = /data/mysql/mysql.sock
pid-file=/data/mysql/ydon.cn.pid
err-log=/var/log/mysqld.log
主要症状:通过ssh连接主机后无法登陆mysql,显示2013错误。只有重启后大约10秒左右能连接数据库,以后就不能了。
谢谢高手给解决下。 |
评分
-
查看全部评分
|