首頁 > mysql教程 閱讀:0更新時間:2020-12-13 05:41:44

ERROR 2013 (HY000): Lost connection to MySQL server during query

問題:
ERROR 2013 (HY000): Lost connection to mysql server during query



160613 ?9:11:45 [ERROR] 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.


To report this bug, see https://mariadb.com/kb/en/reporting-bugs


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.


Server version: 10.1.13-MariaDB
key_buffer_size=67108864
read_buffer_size=262144
max_used_connections=1
max_threads=1026
thread_count=1
It is possible that mysqld could use up to?
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 874500 K ?bytes of memory
Hope that's ok; if not, decrease some variables in the equation.


Thread pointer: 0x0x293fd18
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 = 0x7feb60050188 thread_stack 0x48400
/usr/local/mysql/bin/mysqld(my_print_stacktrace+0x29)[0xb411f9]
/usr/local/mysql/bin/mysqld(handle_fatal_signal+0x41a)[0x72d44a]
/lib64/libpthread.so.0[0x3d9c80f500]
/u01/app/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1(kpuhhaloc+0x486)[0x7feb19adc1be]
/u01/app/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1(kpughndl0+0x237)[0x7feb19b2ece5]
/u01/app/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1(OCIHandleAlloc+0x19)[0x7feb19b01d23]
mysys/stacktrace.c:247(my_print_stacktrace)[0x7feb30857e66]
/u01/app/product/11.2.0/dbhome_1/lib/libsqora.so.11.1(+0x7f167)[0x7feb308af167]
/u01/app/product/11.2.0/dbhome_1/lib/libsqora.so.11.1(SQLAllocHandle+0x31)[0x7feb308af341]
/usr/lib64/libodbc.so.2[0x386880ea94]
/usr/lib64/libodbc.so.2(SQLDriverConnect+0x26c)[0x3868812e6c]
/usr/local/mysql/lib/plugin/ha_connect.so(_ZN7ODBConn13DriverConnectEj+0x63)[0x7feb617cf123]
/usr/local/mysql/lib/plugin/ha_connect.so(_ZN7ODBConn4OpenEPcP10odbc_parmsj+0x55)[0x7feb617d0bf5]
/usr/local/mysql/lib/plugin/ha_connect.so(_Z11ODBCColumnsP7_globalPcS1_S1_S1_ibP10odbc_parms+0x37c)[0x7feb617d159c]
/usr/local/mysql/lib/plugin/ha_connect.so(+0x830c5)[0x7feb617500c5]
sql/sql_table.cc:4822(create_table_impl)[0x635032]
sql/sql_table.cc:4958(mysql_create_table_no_lock(THD*, char const*, char const*, Table_specification_st*, Alter_info*, bool*, int))[0x635663]
sql/sql_table.cc:5019(mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*))[0x635fa7]
/usr/local/mysql/bin/mysqld(_Z21mysql_execute_commandP3THD+0x7c07)[0x5bf007]
sql/sql_parse.cc:3455(mysql_execute_command(THD*))[0x5bf70d]
sql/sql_parse.cc:1486(dispatch_command(enum_server_command, THD*, char*, unsigned int))[0x5c21b9]
sql/sql_parse.cc:1109(do_command(THD*))[0x5c2a63]
sql/sql_connect.cc:1349(do_handle_one_connection(THD*))[0x67cfdc]
sql/sql_connect.cc:1263(handle_one_connection)[0x67d120]
/lib64/libpthread.so.0[0x3d9c807851]
/lib64/libc.so.6(clone+0x6d)[0x3d9c4e890d]


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


Optimizer switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on


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.
160613 09:11:45 mysqld_safe Number of processes running now: 0
160613 09:11:45 mysqld_safe mysqld restarted
2016-06-13 ?9:11:45 140148821133280 [Note] /usr/local/mysql/bin/mysqld (mysqld 10.1.13-MariaDB) starting as process 37253 ...
2016-06-13 ?9:11:45 140148821133280 [Note] CONNECT: Version 1.04.0006 March 12, 2016
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: The InnoDB memory heap is disabled
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Memory barrier is not used
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Using linux native AIO
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Using SSE crc32 instructions
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Completed initialization of buffer pool
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Highest supported file format is Barracuda.
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: The log sequence numbers 189442946158 and 189442946158 in ibdata files do not match the log sequence number 189442946298 in the ib_logfiles!
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Database was not shutdown normally!
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Starting crash recovery.
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Reading tablespace information from the .ibd files...
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: Restoring possible half-written data pages?
2016-06-13 ?9:11:45 140148821133280 [Note] InnoDB: from the doublewrite buffer...
InnoDB: Last MySQL binlog file position 0 360797321, file name /data/mysql/log/master-bin.000086
2016-06-13 ?9:11:46 140148821133280 [Note] InnoDB: 128 rollback segment(s) are active.
2016-06-13 ?9:11:46 140148821133280 [Note] InnoDB: Waiting for purge to start
2016-06-13 ?9:11:46 140148821133280 [Note] InnoDB: ?Percona XtraDB (http://www.percona.com) 5.6.28-76.1 started; log sequence number 189442946298
2016-06-13 ?9:11:46 140147874043648 [Note] InnoDB: Dumping buffer pool(s) not yet started
2016-06-13 ?9:11:46 140148821133280 [Note] Plugin 'FEEDBACK' is disabled.
2016-06-13 ?9:11:46 140148821133280 [Note] Recovering after a crash using tc.log
2016-06-13 ?9:11:46 140148821133280 [Note] Starting crash recovery...
2016-06-13 ?9:11:46 140148821133280 [Note] Crash recovery finished.
2016-06-13 ?9:11:46 140148821133280 [Note] Server socket created on IP: '::'.
2016-06-13 ?9:11:46 140148821133280 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '10.1.13-MariaDB' ?socket: '/tmp/mysql.sock' ?port: 3306 ?Source distribution






MariaDB [checkdb]> check table c_9_code;
+--------------------------+-------+----------+----------------------------------------------------------+
| Table ? ? ? ? ? ? ? ? ? ?| Op ? ?| Msg_type | Msg_text ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
+--------------------------+-------+----------+----------------------------------------------------------+
| checkdb.c_9_code | check | Error ? ?| CONNECT Unsupported command ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
| checkdb.c_9_code | check | Error ? ?| Got error 122 'CONNECT Unsupported command' from CONNECT |
| checkdb.c_9_code | check | error ? ?| Corrupt ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?|
+--------------------------+-------+----------+----------------------------------------------------------+
3 rows in set (0.00 sec)


解決
/etc/my.cnf

beylze編程學院,一個分享編程知識和seo優化知識的網站。跟著beylze一起學習,每天都有進步。

通俗易懂,深入淺出,一篇文章只講一個知識點。

文章不深奧,不需要鉆研,在公交、在地鐵、在廁所都可以閱讀,隨時隨地漲姿勢。

文章不涉及代碼,不燒腦細胞,人人都可以學習。

當你決定關注beylze(公眾號:beylze),你已然超越了90%的其他從業者!

相關文章

国产亚洲欧美日韩