it happended the second time, could be the same reason cause it.
mysql tried to restart itself 3 or more times, but it failed finally.
here is mysql log
130706 09:43:27 mysqld_safe Number of processes running now: 0
130706 09:43:27 mysqld_safe mysqld restarted
130706 9:43:28 InnoDB: Initializing buffer pool, size = 8.0M
130706 9:43:28 InnoDB: Completed initialization of buffer pool
130706 9:43:29 InnoDB: Started; log sequence number 0 2552936
130706 9:43:29 [Note] Event Scheduler: Loaded 0 events
130706 9:43:29 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.69-log' socket: '/var/www/data/mysql.sock' port: 3306 Source distribution
130706 09:43:34 mysqld_safe Number of processes running now: 0
130706 09:43:34 mysqld_safe mysqld restarted130706 9:43:36 InnoDB: Initializing buffer pool, size = 8.0M
130706 9:43:36 InnoDB: Completed initialization of buffer pool
130706 9:43:36 InnoDB: Started; log sequence number 0 2552936
130706 9:43:36 [Note] Event Scheduler: Loaded 0 events
130706 9:43:36 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.69-log' socket: '/var/www/data/mysql.sock' port: 3306 Source distribution
130706 09:43:38 mysqld_safe Number of processes running now: 0
130706 09:43:39 mysqld_safe mysqld restarted
130706 9:43:41 InnoDB: Initializing buffer pool, size = 8.0M
130706 9:43:41 InnoDB: Completed initialization of buffer pool
130706 9:43:41 InnoDB: Started; log sequence number 0 2552936
130706 09:43:42 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
and following is content of my.cnf
there are 1.5G mem on this server
[mysqld]
datadir=/var/www/data
socket=/var/www/data/mysql.sock
user=mysql
symbolic-links=0
query_cache_size=128M
max_connections=512
key_buffer=512M
back_log=200
max_allowed_packet=256M
table_cache=512
sort_buffer_size=4M
myisam_sort_buffer_size=64M
thread_cache=128
wait_timeout=300
thread_concurrency=4
log_output=FILE
slow-query-log=1
slow-query-log-file=/var/www/logs/log-slow-query.log
long_query_time=1
[mysqld_safe]
log-error=/var/www/logs/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
but i can easily start it using "service mysqld start"
anyone knows what was happened? please help!
/var/www/
.. is there a reason for that? Also, theslow-query-log
andslow-query-log-file
are on the same line.. is that a copy/paste error?/var/www/
directory? Conventionally that's for files to be served by the web servermysqld --print-defaults
(from: dev.mysql.com/doc/refman/5.0/en/debugging-server.html) and comparing that with your conf file?