打印

军哥 怎么 mysql5.5 老是挂

军哥 怎么 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:24  InnoDB: Waiting for the background threads to start
181030 11:26:25 InnoDB: 5.5.60 started; log sequence number 11596662178
181030 11:26:25 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
181030 11:26:25 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
181030 11:26:25 [Note] Server socket created on IP: '0.0.0.0'.
181030 11:26:25 [Note] Event Scheduler: Loaded 0 events
181030 11:26:25 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.60-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
181030 11:29:11 [Warning] You need to use --log-bin to make --binlog-format work.
181030 11:29:11 [Note] 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:12  InnoDB: 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:13  InnoDB: 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:14  InnoDB: Waiting for the background threads to start
181030 11:29:15 InnoDB: 5.5.60 started; log sequence number 11596764476
181030 11:29:15 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
181030 11:29:15 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
181030 11:29:15 [Note] Server socket created on IP: '0.0.0.0'.
181030 11:29:15 [Note] Event Scheduler: Loaded 0 events
181030 11:29:15 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.60-log'  socket: '/tmp/mysql.sock'  port: 3306  Source distribution
181030 11:31:04 [Warning] You need to use --log-bin to make --binlog-format work.
181030 11:31:05 [Note] 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:05  InnoDB: 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...

TOP

有可能内存不足

LNMP付费问题排查/LNMP技术支持/Paypal信用卡代付/代购VPS,域名,软件等 QQ 503228080 旺旺 lzhenbao
军哥淘宝店铺
QQ/旺旺仅提供代购及付费代维/问题解决等服务,其他不回复!LNMP相关问题请在本论坛发帖,提问前先搜索,按https://bbs.vpser.net/thread-2555-1-1.html 要求反馈问题!

TOP

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


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

[mysqld]
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



[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
引用:
原帖由 licess 于 2018-10-30 14:00 发表
有可能内存不足

TOP