LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 767|回复: 1

求助:mysql的错误

[复制链接]
发表于 2003-8-8 15:11:23 | 显示全部楼层 |阅读模式
FreeBSD4.8  上面只有一个BBS   
从ports安装的mysql3.23.57

现在发现在/var/db/mysql下面有很多类似www-bin.1150的文件 (按序号排列的)
查看www.err 内容如下:
030808 14:40:02  mysqld restarted
/usr/local/libexec/mysqld: ready for connections
030808 14:40:35  Warning: Found 298888 of 298885 rows when repairing './bbs/test_posts'
030808 14:40:42  mysqld restarted
/usr/local/libexec/mysqld: ready for connections
030808 14:41:01  mysqld restarted
/usr/local/libexec/mysqld: ready for connections
030808 14:41:13  mysqld restarted
/usr/local/libexec/mysqld: ready for connections
030808 14:41:23  mysqld restarted
/usr/local/libexec/mysqld: ready for connections
030808 14:41:38  mysqld restarted
/usr/local/libexec/mysqld: ready for connections

而且www.err这个文件增长很快

/etc/my.cnf 内容如下:
www# more /etc/my.cnf
# Example mysql config file for large systems.
#
# This is for large system with memory = 512M where the system runs mainly
# MySQL.
#
# You can copy this file to
# /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /var/db/mysql) or
# ~/.my.cnf to set user-specific options.
#
# One can in this file use all long options that the program supports.
# If you want to know which options a program support, run the program
# with --help option.

# The following options will be passed to all MySQL clients
[client]
#password       = your_password
port            = 3306
socket          = /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port            = 3306
socket          = /tmp/mysql.sock
skip-locking
skip-innodb
set-variable    = key_buffer=256M
set-variable    = max_allowed_packet=1M
set-variable    = table_cache=256
set-variable    = sort_buffer=1M
set-variable    = record_buffer=1M
set-variable    = myisam_sort_buffer_size=64M
set-variable    = thread_cache=8
# Try number of CPU's*2 for thread_concurrency
set-variable    = thread_concurrency=8
log-bin
server-id       = 1

# Uncomment the following if you are using BDB tables
#set-variable   = bdb_cache_size=64M
#set-variable   = bdb_max_lock=100000
set-variable = max_connection=800
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/db/mysql/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/db/mysql/
#innodb_log_arch_dir = /var/db/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#set-variable = innodb_buffer_pool_size=256M
#set-variable = innodb_additional_mem_pool_size=20M
# Set .._log_file_size to 25 % of buffer pool size
#set-variable = innodb_log_file_size=64M
#set-variable = innodb_log_buffer_size=8M
#innodb_flush_log_at_trx_commit=1
#set-variable = innodb_lock_wait_timeout=50

# Point the following paths to different dedicated disks
#tmpdir         = /tmp/         
#log-update     = /path-to-dedicated-directory/hostname

[mysqldump]
quick
set-variable    = max_allowed_packet=16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
set-variable    = key_buffer=128M
set-variable    = sort_buffer=128M
set-variable    = read_buffer=2M
set-variable    = write_buffer=2M

[myisamchk]
set-variable    = key_buffer=128M
set-variable    = sort_buffer=128M
set-variable    = read_buffer=2M
set-variable    = write_buffer=2M

[mysqlhotcopy]
interactive-timeout

现在BBS的页面访问速度很慢 请各位给看看是怎么回事阿
不胜感激~!!  

:cool:
发表于 2003-8-9 08:05:43 | 显示全部楼层
确定是由于数据库的问题引起的吗?还有查一查那些文件是由哪个程序产生的。
mysql不会产生这种文件呀?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表