stephan 发表于 2018-10-30 11:45:13

军哥 怎么 mysql5.5 老是挂

InnoDB: Doing recovery: scanned up to log sequence number 11596662178
InnoDB: Last MySQL binlog file position 0 12480, file name ./mysql-bin.000637
181030 11:26:24InnoDB: Waiting for the background threads to start
181030 11:26:25 InnoDB: 5.5.60 started; log sequence number 11596662178
181030 11:26:25 Server hostname (bind-address): '0.0.0.0'; port: 3306
181030 11:26:25    - '0.0.0.0' resolves to '0.0.0.0';
181030 11:26:25 Server socket created on IP: '0.0.0.0'.
181030 11:26:25 Event Scheduler: Loaded 0 events
181030 11:26:25 /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.60-log'socket: '/tmp/mysql.sock'port: 3306Source distribution
181030 11:29:11 You need to use --log-bin to make --binlog-format work.
181030 11:29:11 Plugin 'FEDERATED' is disabled.
181030 11:29:11 InnoDB: The InnoDB memory heap is disabled
181030 11:29:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins
181030 11:29:11 InnoDB: Compressed tables use zlib 1.2.7
181030 11:29:11 InnoDB: Using Linux native AIO
181030 11:29:12 InnoDB: Initializing buffer pool, size = 16.0M
181030 11:29:12 InnoDB: Completed initialization of buffer pool
181030 11:29:12 InnoDB: highest supported file format is Barracuda.
InnoDB: Log scan progressed past the checkpoint lsn 11596719162
181030 11:29:12InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Doing recovery: scanned up to log sequence number 11596764476
181030 11:29:13InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percents: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
InnoDB: Last MySQL binlog file position 0 12480, file name ./mysql-bin.000637
181030 11:29:14InnoDB: Waiting for the background threads to start
181030 11:29:15 InnoDB: 5.5.60 started; log sequence number 11596764476
181030 11:29:15 Server hostname (bind-address): '0.0.0.0'; port: 3306
181030 11:29:15    - '0.0.0.0' resolves to '0.0.0.0';
181030 11:29:15 Server socket created on IP: '0.0.0.0'.
181030 11:29:15 Event Scheduler: Loaded 0 events
181030 11:29:15 /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.60-log'socket: '/tmp/mysql.sock'port: 3306Source distribution
181030 11:31:04 You need to use --log-bin to make --binlog-format work.
181030 11:31:05 Plugin 'FEDERATED' is disabled.
181030 11:31:05 InnoDB: The InnoDB memory heap is disabled
181030 11:31:05 InnoDB: Mutexes and rw_locks use GCC atomic builtins
181030 11:31:05 InnoDB: Compressed tables use zlib 1.2.7
181030 11:31:05 InnoDB: Using Linux native AIO
181030 11:31:05 InnoDB: Initializing buffer pool, size = 16.0M
181030 11:31:05 InnoDB: Completed initialization of buffer pool
181030 11:31:05 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
181030 11:31:05InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...

licess 发表于 2018-10-30 14:00:29

有可能内存不足

stephan 发表于 2018-10-30 15:02:23

军哥:mysql配置如下还有的优化吗?服务器内存是1G



#password
= your_password
port
= 3306
socket
= /tmp/mysql.sock


port
= 3306
socket
= /tmp/mysql.sock
datadir = /usr/local/mysql/var
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
thread_cache_size = 8
query_cache_size = 8M
tmp_table_size = 16M


slow_query_log = ON
#slow_query_log_file = /home/mysqllog/slow_querys.log
long_query_time = 2

#skip-networking
max_connections = 500
max_connect_errors = 100
open_files_limit = 65535

#log-bin=mysql-bin
binlog_format=mixed
server-id
= 1
expire_logs_days = 10

default_storage_engine = InnoDB
innodb_file_per_table = 1
innodb_data_home_dir = /usr/local/mysql/var
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /usr/local/mysql/var
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50




quick
max_allowed_packet = 16M


no-auto-rehash


key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M


interactive-timeout



原帖由 licess 于 2018-10-30 14:00 发表 http://bbs.vpser.net/images/common/back.gif
有可能内存不足
页: [1]
查看完整版本: 军哥 怎么 mysql5.5 老是挂