powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / MySQL [игнор отключен] [закрыт для гостей] / MySQL постоянно отваливается
10 сообщений из 10, страница 1 из 1
MySQL постоянно отваливается
    #38502673
naga
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Взял хост на DigitalOcean, установил Ubuntu 12.04.3 x64, MySQL

Пару часов сервер работал нормально, потом упал. При попытке подключится:
Код: sql
1.
2.
3.
root@classicprj:/etc/nginx# mysql -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)



Свободного места на диске куча. Конфиг не трогал, дефолтный:
Код: sql
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.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket          = /var/run/mysqld/mysqld.sock
nice            = 0

[mysqld]
#
# * Basic Settings
#
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address            = 127.0.0.1
#
# * Fine Tuning
#
key_buffer              = 16M
max_allowed_packet      = 16M
thread_stack            = 192K
thread_cache_size       = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover         = BACKUP
#max_connections        = 100
#table_cache            = 64
#thread_concurrency     = 10
#
# * Query Cache Configuration
#
query_cache_limit       = 1M
query_cache_size        = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file        = /var/log/mysql/mysql.log
#general_log             = 1
#
# Error log - should be very few entries.
#
log_error = /var/log/mysql/error.log
#
# Here you can see queries with especially long duration
#log_slow_queries       = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
#       other settings you may need to change.
#server-id              = 1
#log_bin                        = /var/log/mysql/mysql-bin.log
expire_logs_days        = 10
max_binlog_size         = 100M
#binlog_do_db           = include_database_name
#binlog_ignore_db       = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem



[mysqldump]
quick
quote-names
max_allowed_packet      = 16M

[mysql]
#no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
key_buffer              = 16M

#
# * IMPORTANT: Additional settings that can override those from this file!
#   The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/



Последние 100 записей из лога:
Код: sql
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.
100.
root@classicprj:/etc/nginx# tail -100 /var/log/mysql/error.log
131216  8:48:37 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
131216  8:48:37 [Note] Plugin 'FEDERATED' is disabled.
131216  8:48:37 InnoDB: The InnoDB memory heap is disabled
131216  8:48:37 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131216  8:48:37 InnoDB: Compressed tables use zlib 1.2.3.4
131216  8:48:37 InnoDB: Initializing buffer pool, size = 128.0M
131216  8:48:37 InnoDB: Completed initialization of buffer pool
131216  8:48:37 InnoDB: highest supported file format is Barracuda.
131216  8:48:37  InnoDB: Waiting for the background threads to start
131216  8:48:38 InnoDB: 5.5.34 started; log sequence number 1595675
ERROR: 1050  Table 'plugin' already exists
131216  8:48:38 [ERROR] Aborting

131216  8:48:38  InnoDB: Starting shutdown...
131216  8:48:38  InnoDB: Shutdown completed; log sequence number 1595675
131216  8:48:38 [Note] /usr/sbin/mysqld: Shutdown complete

131216  8:48:39 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
131216  8:48:39 [Note] Plugin 'FEDERATED' is disabled.
131216  8:48:39 InnoDB: The InnoDB memory heap is disabled
131216  8:48:39 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131216  8:48:39 InnoDB: Compressed tables use zlib 1.2.3.4
131216  8:48:39 InnoDB: Initializing buffer pool, size = 128.0M
131216  8:48:39 InnoDB: Completed initialization of buffer pool
131216  8:48:39 InnoDB: highest supported file format is Barracuda.
131216  8:48:39  InnoDB: Waiting for the background threads to start
131216  8:48:40 InnoDB: 5.5.34 started; log sequence number 1595675
131216  8:48:40 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
131216  8:48:40 [Note]   - '127.0.0.1' resolves to '127.0.0.1';
131216  8:48:40 [Note] Server socket created on IP: '127.0.0.1'.
131216  8:48:40 [Note] Event Scheduler: Loaded 0 events
131216  8:48:40 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.34-0ubuntu0.12.04.1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)
131216 10:29:09 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
131216 10:29:09 [Note] Plugin 'FEDERATED' is disabled.
131216 10:29:09 InnoDB: The InnoDB memory heap is disabled
131216 10:29:09 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131216 10:29:09 InnoDB: Compressed tables use zlib 1.2.3.4
131216 10:29:09 InnoDB: Initializing buffer pool, size = 128.0M
131216 10:29:09 InnoDB: Completed initialization of buffer pool
131216 10:29:09 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!
131216 10:29:09  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...
131216 10:29:09  InnoDB: Waiting for the background threads to start
131216 10:29:10 InnoDB: 5.5.34 started; log sequence number 346666373
131216 10:29:10 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
131216 10:29:10 [Note]   - '127.0.0.1' resolves to '127.0.0.1';
131216 10:29:10 [Note] Server socket created on IP: '127.0.0.1'.
131216 10:29:10 [ERROR] /usr/sbin/mysqld: Table './mysql/user' is marked as crashed and should be repaired
131216 10:29:10 [Warning] Checking table:   './mysql/user'
131216 10:29:10 [ERROR] 1 client is using or hasn't closed the table properly
131216 10:29:10 [ERROR] /usr/sbin/mysqld: Table './mysql/db' is marked as crashed and should be repaired
131216 10:29:10 [Warning] Checking table:   './mysql/db'
131216 10:29:10 [ERROR] 1 client is using or hasn't closed the table properly
131216 10:29:10 [Note] Event Scheduler: Loaded 0 events
131216 10:29:10 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.34-0ubuntu0.12.04.1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)
131216 10:29:12 [ERROR] /usr/sbin/mysqld: Table './mysql/proc' is marked as crashed and should be repaired
131216 10:29:12 [Warning] Checking table:   './mysql/proc'
131216 10:29:12 [ERROR] /usr/sbin/mysqld: Table './classic/xf_session' is marked as crashed and should be repaired
131216 10:29:12 [Warning] Checking table:   './classic/xf_session'
131216 10:29:15 [ERROR] /usr/sbin/mysqld: Table './phpmyadmin/pma_userconfig' is marked as crashed and should be repaired
131216 10:29:15 [Warning] Checking table:   './phpmyadmin/pma_userconfig'
131216 10:29:26 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
131216 10:29:26 [Note] Plugin 'FEDERATED' is disabled.
131216 10:29:26 InnoDB: The InnoDB memory heap is disabled
131216 10:29:26 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131216 10:29:26 InnoDB: Compressed tables use zlib 1.2.3.4
131216 10:29:26 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
131216 10:29:26 InnoDB: Completed initialization of buffer pool
131216 10:29:26 InnoDB: Fatal error: cannot allocate memory for the buffer pool
131216 10:29:26 [ERROR] Plugin 'InnoDB' init function returned error.
131216 10:29:26 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
131216 10:29:26 [ERROR] Unknown/unsupported storage engine: InnoDB
131216 10:29:26 [ERROR] Aborting

131216 10:29:26 [Note] /usr/sbin/mysqld: Shutdown complete

131216 10:29:27 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
131216 10:29:27 [Note] Plugin 'FEDERATED' is disabled.
131216 10:29:27 InnoDB: The InnoDB memory heap is disabled
131216 10:29:27 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131216 10:29:27 InnoDB: Compressed tables use zlib 1.2.3.4
131216 10:29:27 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
131216 10:29:27 InnoDB: Completed initialization of buffer pool
131216 10:29:27 InnoDB: Fatal error: cannot allocate memory for the buffer pool
131216 10:29:27 [ERROR] Plugin 'InnoDB' init function returned error.
131216 10:29:27 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
131216 10:29:27 [ERROR] Unknown/unsupported storage engine: InnoDB
131216 10:29:27 [ERROR] Aborting

131216 10:29:27 [Note] /usr/sbin/mysqld: Shutdown complete
...
Рейтинг: 0 / 0
MySQL постоянно отваливается
    #38502763
miksoft
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
naga
Код: sql
1.
InnoDB: mmap(137363456 bytes) failed; errno 12

http://forums.mysql.com/read.php?22,587619,587624#msg-587624 error code seems to linux OS CODE

12 - OUT OF MEMORY http://stackoverflow.com/questions/10284532/amazon-ec2-mysql-aborting-start-because-innodb-mmap-x-bytes-failed-errno-12 Adding a Swap page solved the problem for me. Похоже, что не хватает оперативки...
...
Рейтинг: 0 / 0
MySQL постоянно отваливается
    #38502781
naga
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
miksoft, спасибо за ответ.

Неужели 1 гигабайта мало? Что вы можете порекомендовать для оптимизации MySQL в плане потребления памяти?
...
Рейтинг: 0 / 0
MySQL постоянно отваливается
    #38502788
miksoft
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Дело не в том, сколько ее вообще, а в том, сколько её осталось свободной, после того как часть занята, как самим MySQL, так и другим софтом.
Попробуйте посмотреть top-ом кто больше всего памяти потребляет и сколько осталось.
...
Рейтинг: 0 / 0
MySQL постоянно отваливается
    #38503293
Фотография MasterZiv
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
nag

моё предположение - у тебя бд и лог инно не соответствуют друг другу.
он от другой бд.

инно в самом начале твоего еррор лога пишет, что начинает накатывает лог транзакций, но потом ошибка идет, что такая таблица уже в бд есть. И оно падает.

либо удали лог, либо восстанови бд.
...
Рейтинг: 0 / 0
MySQL постоянно отваливается
    #38503502
naga
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Вчера добавил swap и добавил в конфиге
Код: sql
1.
2.
[mysqld]
innodb_buffer_pool_size = 200M


Всё равно упал:
Код: sql
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.
131216 15:11:17 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
131216 15:11:17 [Note] Plugin 'FEDERATED' is disabled.
131216 15:11:17 InnoDB: The InnoDB memory heap is disabled
131216 15:11:17 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131216 15:11:17 InnoDB: Compressed tables use zlib 1.2.3.4
131216 15:11:17 InnoDB: Initializing buffer pool, size = 200.0M
InnoDB: mmap(214630400 bytes) failed; errno 12
131216 15:11:17 InnoDB: Completed initialization of buffer pool
131216 15:11:17 InnoDB: Fatal error: cannot allocate memory for the buffer pool
131216 15:11:17 [ERROR] Plugin 'InnoDB' init function returned error.
131216 15:11:17 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
131216 15:11:17 [ERROR] Unknown/unsupported storage engine: InnoDB
131216 15:11:17 [ERROR] Aborting

131216 15:11:17 [Note] /usr/sbin/mysqld: Shutdown complete

131216 15:11:18 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
131216 15:11:18 [Note] Plugin 'FEDERATED' is disabled.
131216 15:11:18 InnoDB: The InnoDB memory heap is disabled
131216 15:11:18 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131216 15:11:18 InnoDB: Compressed tables use zlib 1.2.3.4
131216 15:11:18 InnoDB: Initializing buffer pool, size = 200.0M
InnoDB: mmap(214630400 bytes) failed; errno 12
131216 15:11:18 InnoDB: Completed initialization of buffer pool
131216 15:11:18 InnoDB: Fatal error: cannot allocate memory for the buffer pool
131216 15:11:18 [ERROR] Plugin 'InnoDB' init function returned error.
131216 15:11:18 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
131216 15:11:18 [ERROR] Unknown/unsupported storage engine: InnoDB
131216 15:11:18 [ERROR] Aborting

131216 15:11:18 [Note] /usr/sbin/mysqld: Shutdown complete



В конце вон ругается на "Unknown/unsupported storage engine: InnoDB". В интернете рекомендуют в конфиге отключить InnoDB, но хотелось бы другим способом справиться.

MasterZiv моё предположение - у тебя бд и лог инно не соответствуют друг другу.
он от другой бд.
либо удали лог, либо восстанови бд.
Как такое может быть? Что восстанавливать?
...
Рейтинг: 0 / 0
MySQL постоянно отваливается
    #38503556
naga
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Мне кажется, я сломал мускул до конца =/

В интернетах посоветовали
Код: sql
1.
2.
rm /var/lib/mysql/ib_logfile0
rm /var/lib/mysql/ib_logfile1



Код: sql
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.
100.
root@classicprj:/usr/local/bin# tail -100 /var/log/mysql/error.log
131217  5:09:32  InnoDB: Error: page 3842 log sequence number 42977975
InnoDB: is in the future! Current system log sequence number 1622717.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: for more information.
131217  5:09:32  InnoDB: Error: page 3843 log sequence number 42978076
InnoDB: is in the future! Current system log sequence number 1622717.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: for more information.
131217  5:09:32  InnoDB: Error: page 4680 log sequence number 68605925
InnoDB: is in the future! Current system log sequence number 1622717.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: for more information.
131217  5:09:32  InnoDB: Error: page 4383 log sequence number 50817069
InnoDB: is in the future! Current system log sequence number 1622717.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: for more information.
10:09:32 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

key_buffer_size=16777216
read_buffer_size=131072
max_used_connections=24
max_threads=151
thread_count=24
connection_count=24
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 346700 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7fd44accaff0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7fd42cc13e60 thread_stack 0x30000
/usr/sbin/mysqld(my_print_stacktrace+0x29)[0x7fd448235589]
/usr/sbin/mysqld(handle_fatal_signal+0x483)[0x7fd4480fa9d3]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7fd446e44cb0]
/usr/sbin/mysqld(+0x64f0d4)[0x7fd44832b0d4]
/usr/sbin/mysqld(+0x5c9139)[0x7fd4482a5139]
/usr/sbin/mysqld(+0x5cd8db)[0x7fd4482a98db]
/usr/sbin/mysqld(+0x5fa244)[0x7fd4482d6244]
/usr/sbin/mysqld(+0x5fa5a4)[0x7fd4482d65a4]
/usr/sbin/mysqld(+0x56e02e)[0x7fd44824a02e]
/usr/sbin/mysqld(_ZN7handler7ha_openEP5TABLEPKcii+0x3d)[0x7fd4480ff27d]
/usr/sbin/mysqld(_Z21open_table_from_shareP3THDP11TABLE_SHAREPKcjjjP5TABLEb+0x587)[0x7fd448062907]
/usr/sbin/mysqld(_Z10open_tableP3THDP10TABLE_LISTP11st_mem_rootP18Open_table_context+0xc4c)[0x7fd447fa42ec]
/usr/sbin/mysqld(_Z11open_tablesP3THDPP10TABLE_LISTPjjP19Prelocking_strategy+0x41f)[0x7fd447fa4d9f]
/usr/sbin/mysqld(_Z30open_normal_and_derived_tablesP3THDP10TABLE_LISTj+0x4b)[0x7fd447fa5b2b]
/usr/sbin/mysqld(+0x348b90)[0x7fd448024b90]
/usr/sbin/mysqld(_Z14get_all_tablesP3THDP10TABLE_LISTP4Item+0x78b)[0x7fd448033c5b]
/usr/sbin/mysqld(_Z24get_schema_tables_resultP4JOIN23enum_schema_table_state+0x216)[0x7fd448038836]
/usr/sbin/mysqld(_ZN4JOIN4execEv+0x4ed)[0x7fd4480207ad]
/usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x130)[0x7fd44801c610]
/usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x17c)[0x7fd44802263c]
/usr/sbin/mysqld(+0x2facd4)[0x7fd447fd6cd4]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x16a6)[0x7fd447fde7f6]
/usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x10f)[0x7fd447fe3a0f]
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x1e71)[0x7fd447fe5951]
/usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x1bd)[0x7fd44808bd9d]
/usr/sbin/mysqld(handle_one_connection+0x50)[0x7fd44808be00]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7fd446e3ce9a]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fd44656d3fd]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7fd42401c300): is an invalid pointer
Connection ID (thread ID): 31
Status: NOT_KILLED

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
131217  5:09:32 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
131217  5:09:32 [Note] Plugin 'FEDERATED' is disabled.
131217  5:09:32 InnoDB: The InnoDB memory heap is disabled
131217  5:09:32 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131217  5:09:32 InnoDB: Compressed tables use zlib 1.2.3.4
131217  5:09:32 InnoDB: Initializing buffer pool, size = 200.0M
InnoDB: mmap(214630400 bytes) failed; errno 12
131217  5:09:32 InnoDB: Completed initialization of buffer pool
131217  5:09:32 InnoDB: Fatal error: cannot allocate memory for the buffer pool
131217  5:09:32 [ERROR] Plugin 'InnoDB' init function returned error.
131217  5:09:32 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
131217  5:09:32 [ERROR] Unknown/unsupported storage engine: InnoDB
131217  5:09:32 [ERROR] Aborting

131217  5:09:32 [Note] /usr/sbin/mysqld: Shutdown complete



К счастью у меня сейчас только 1 база, как мне ее грамотно залить?
...
Рейтинг: 0 / 0
MySQL постоянно отваливается
    #38504057
miksoft
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
nagaВчера добавил swap и добавил в конфиге
Код: sql
1.
2.
[mysqld]
innodb_buffer_pool_size = 200M



Всё равно упал:Логично, вы же увеличили потребление памяти. Было 128 МБ, стало 200 МБ.
top смотрели?
...
Рейтинг: 0 / 0
MySQL постоянно отваливается
    #38504273
naga
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Да, там всё по мелочи жрет. Swap должен же по идее спасать.
...
Рейтинг: 0 / 0
MySQL постоянно отваливается
    #38508590
Meijin
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
nagaМне кажется, я сломал мускул до конца =/

В интернетах посоветовали
Код: sql
1.
2.
rm /var/lib/mysql/ib_logfile0
rm /var/lib/mysql/ib_logfile1



Код: sql
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.
100.
root@classicprj:/usr/local/bin# tail -100 /var/log/mysql/error.log
131217  5:09:32  InnoDB: Error: page 3842 log sequence number 42977975
InnoDB: is in the future! Current system log sequence number 1622717.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: for more information.
131217  5:09:32  InnoDB: Error: page 3843 log sequence number 42978076
InnoDB: is in the future! Current system log sequence number 1622717.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: for more information.
131217  5:09:32  InnoDB: Error: page 4680 log sequence number 68605925
InnoDB: is in the future! Current system log sequence number 1622717.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: for more information.
131217  5:09:32  InnoDB: Error: page 4383 log sequence number 50817069
InnoDB: is in the future! Current system log sequence number 1622717.
InnoDB: Your database may be corrupt or you may have copied the InnoDB
InnoDB: tablespace but not the InnoDB log files. See
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html
InnoDB: for more information.
10:09:32 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.

key_buffer_size=16777216
read_buffer_size=131072
max_used_connections=24
max_threads=151
thread_count=24
connection_count=24
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 346700 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x7fd44accaff0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7fd42cc13e60 thread_stack 0x30000
/usr/sbin/mysqld(my_print_stacktrace+0x29)[0x7fd448235589]
/usr/sbin/mysqld(handle_fatal_signal+0x483)[0x7fd4480fa9d3]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0)[0x7fd446e44cb0]
/usr/sbin/mysqld(+0x64f0d4)[0x7fd44832b0d4]
/usr/sbin/mysqld(+0x5c9139)[0x7fd4482a5139]
/usr/sbin/mysqld(+0x5cd8db)[0x7fd4482a98db]
/usr/sbin/mysqld(+0x5fa244)[0x7fd4482d6244]
/usr/sbin/mysqld(+0x5fa5a4)[0x7fd4482d65a4]
/usr/sbin/mysqld(+0x56e02e)[0x7fd44824a02e]
/usr/sbin/mysqld(_ZN7handler7ha_openEP5TABLEPKcii+0x3d)[0x7fd4480ff27d]
/usr/sbin/mysqld(_Z21open_table_from_shareP3THDP11TABLE_SHAREPKcjjjP5TABLEb+0x587)[0x7fd448062907]
/usr/sbin/mysqld(_Z10open_tableP3THDP10TABLE_LISTP11st_mem_rootP18Open_table_context+0xc4c)[0x7fd447fa42ec]
/usr/sbin/mysqld(_Z11open_tablesP3THDPP10TABLE_LISTPjjP19Prelocking_strategy+0x41f)[0x7fd447fa4d9f]
/usr/sbin/mysqld(_Z30open_normal_and_derived_tablesP3THDP10TABLE_LISTj+0x4b)[0x7fd447fa5b2b]
/usr/sbin/mysqld(+0x348b90)[0x7fd448024b90]
/usr/sbin/mysqld(_Z14get_all_tablesP3THDP10TABLE_LISTP4Item+0x78b)[0x7fd448033c5b]
/usr/sbin/mysqld(_Z24get_schema_tables_resultP4JOIN23enum_schema_table_state+0x216)[0x7fd448038836]
/usr/sbin/mysqld(_ZN4JOIN4execEv+0x4ed)[0x7fd4480207ad]
/usr/sbin/mysqld(_Z12mysql_selectP3THDPPP4ItemP10TABLE_LISTjR4ListIS1_ES2_jP8st_orderSB_S2_SB_yP13select_resultP18st_select_lex_unitP13st_select_lex+0x130)[0x7fd44801c610]
/usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x17c)[0x7fd44802263c]
/usr/sbin/mysqld(+0x2facd4)[0x7fd447fd6cd4]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x16a6)[0x7fd447fde7f6]
/usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x10f)[0x7fd447fe3a0f]
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0x1e71)[0x7fd447fe5951]
/usr/sbin/mysqld(_Z24do_handle_one_connectionP3THD+0x1bd)[0x7fd44808bd9d]
/usr/sbin/mysqld(handle_one_connection+0x50)[0x7fd44808be00]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7fd446e3ce9a]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fd44656d3fd]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7fd42401c300): is an invalid pointer
Connection ID (thread ID): 31
Status: NOT_KILLED

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
131217  5:09:32 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
131217  5:09:32 [Note] Plugin 'FEDERATED' is disabled.
131217  5:09:32 InnoDB: The InnoDB memory heap is disabled
131217  5:09:32 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131217  5:09:32 InnoDB: Compressed tables use zlib 1.2.3.4
131217  5:09:32 InnoDB: Initializing buffer pool, size = 200.0M
InnoDB: mmap(214630400 bytes) failed; errno 12
131217  5:09:32 InnoDB: Completed initialization of buffer pool
131217  5:09:32 InnoDB: Fatal error: cannot allocate memory for the buffer pool
131217  5:09:32 [ERROR] Plugin 'InnoDB' init function returned error.
131217  5:09:32 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
131217  5:09:32 [ERROR] Unknown/unsupported storage engine: InnoDB
131217  5:09:32 [ERROR] Aborting

131217  5:09:32 [Note] /usr/sbin/mysqld: Shutdown complete



К счастью у меня сейчас только 1 база, как мне ее грамотно залить?
Если данные не нужны, то заставить работать базу можно удалив еще и ibdata1
...
Рейтинг: 0 / 0
10 сообщений из 10, страница 1 из 1
Форумы / MySQL [игнор отключен] [закрыт для гостей] / MySQL постоянно отваливается
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]