我的 MySQL 服务器出现错误消息。Linux 具有 8 GB 内存。
/usr/sbin/mysqld: Sort aborted
/usr/sbin/mysqld: Sort aborted
/usr/sbin/mysqld: Sort aborted
我有 InnoDB 数据库,这是我的 my.cnf 配置。
[mysqld]
#basedir = /var/lib
datadir = /CMS/database/editorial/primary
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
skip-name-resolve
key_buffer = 512M
max_allowed_packet = 8M
table_cache = 256
sort_buffer_size = 256M
read_buffer_size = 256M
read_rnd_buffer_size = 256M
myisam_sort_buffer_size = 256M
thread_cache_size =16
query_cache_size= 512M
max_connections=1000
join_buffer_size=256M
lower_case_table_names = 1
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
innodb_data_home_dir = /CMS/database/editorial/primary/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /CMS/database/editorial/logs/
innodb_log_arch_dir = /CMS/database/editorial/log-archive/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 2048M
innodb_additional_mem_pool_size = 256M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
#lower_case_table_names = 0
答案1
我通常Sort aborted
在 mysqld 崩溃时看到消息。如果 mysqld 仍在运行,则可能是由 mysqld_safe 重新启动的。手动重新启动 mysql 也可能导致此问题。
您应该查看下面这些行,看看 MySQL 是否已重新启动并显示“ready for connections”
这些Sort aborted
消息也可能是由于大量终止忙于执行 SQL 查询的 DB 连接而产生的。