VPS侦探论坛

 找回密码
 注册
查看: 7685|回复: 2

军哥 怎么 mysql5.5 老是挂

[复制链接]
发表于 2018-10-30 11:45:13 | 显示全部楼层 |阅读模式

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...
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-10-30 14:00:29 | 显示全部楼层


有可能内存不足
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2018-10-30 15:02:23 | 显示全部楼层

军哥: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 发表
有可能内存不足
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-23 13:20 , Processed in 0.025800 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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