我无法在mysql中删除空数据库

时间:2019-11-13 15:31:02

标签: mysql ubuntu-16.04

在尝试在mysql中删除空数据库时遇到很多错误 附加了日志文件:

2019-11-13 13:15:37 0x7fd4381ec700  InnoDB: Assertion failure in thread 140549451335424 in file row0mysql.cc line 5082
InnoDB: Failing assertion: memcmp(table_name, name, namelen) == 0
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
13:15:37 UTC - mysqld got signal 6 ;
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.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

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

Thread pointer: 0x7fd3c8007890
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 = 7fd4381ebe70 thread_stack 0x30000
/usr/sbin/mysqld(my_print_stacktrace+0x3b)[0xe8950b]
/usr/sbin/mysqld(handle_fatal_signal+0x489)[0x785f09]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fd4599ed390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7fd458da6428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7fd458da802a]
/usr/sbin/mysqld[0x75c0d2]
/usr/sbin/mysqld(_Z27row_drop_database_for_mysqlPKcP5trx_tPm+0x4b8)[0x106b378]
/usr/sbin/mysqld[0xf6f6de]
/usr/sbin/mysqld[0x7ceb3c]
/usr/sbin/mysqld(_Z24plugin_foreach_with_maskP3THDPPFcS0_P13st_plugin_intPvEijS3_+0x1e1)[0xc6f671]
/usr/sbin/mysqld(_Z24plugin_foreach_with_maskP3THDPFcS0_P13st_plugin_intPvEijS3_+0x2c)[0xc6f81c]
/usr/sbin/mysqld(_Z11mysql_rm_dbP3THDRK25st_mysql_const_lex_stringbb+0x991)[0xc12dc1]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THDb+0x27ee)[0xc4a48e]
/usr/sbin/mysqld(_Z11mysql_parseP3THDP12Parser_state+0x3f5)[0xc4ea75]
/usr/sbin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0x1083)[0xc4fb63]
/usr/sbin/mysqld(_Z10do_commandP3THD+0x1c7)[0xc51137]
/usr/sbin/mysqld(handle_connection+0x288)[0xd11328]
/usr/sbin/mysqld(pfs_spawn_thread+0x1b4)[0xf01414]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7fd4599e36ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fd458e783dd]

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (7fd3c800be70): DROP DATABASE `old_database`
Connection ID (thread ID): 114
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.
2019-11-13T13:15:38.247054Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2019-11-13T13:15:38.247136Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
2019-11-13T13:15:38.419483Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-11-13T13:15:38.429323Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.19-0ubuntu0.16.04.1-log) starting as process 2879 ...
2019-11-13T13:15:38.439551Z 0 [Note] InnoDB: PUNCH HOLE support available
2019-11-13T13:15:38.439852Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-11-13T13:15:38.439877Z 0 [Note] InnoDB: Uses event mutexes
2019-11-13T13:15:38.439896Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-11-13T13:15:38.439914Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.8
2019-11-13T13:15:38.439933Z 0 [Note] InnoDB: Using Linux native AIO
2019-11-13T13:15:38.440729Z 0 [Note] InnoDB: Number of pools: 1
2019-11-13T13:15:38.440906Z 0 [Note] InnoDB: Using CPU crc32 instructions
2019-11-13T13:15:38.443430Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-11-13T13:15:38.453162Z 0 [Note] InnoDB: Completed initialization of buffer pool
2019-11-13T13:15:38.456582Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2019-11-13T13:15:38.475652Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2019-11-13T13:15:38.480382Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 9497143280
2019-11-13T13:15:38.480508Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 9497143289
2019-11-13T13:15:38.480533Z 0 [Note] InnoDB: Database was not shutdown normally!
2019-11-13T13:15:38.480570Z 0 [Note] InnoDB: Starting crash recovery.
2019-11-13T13:15:38.865528Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2019-11-13T13:15:38.865638Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-11-13T13:15:38.865820Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-11-13T13:15:38.891620Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2019-11-13T13:15:38.892795Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2019-11-13T13:15:38.892853Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2019-11-13T13:15:38.893903Z 0 [Note] InnoDB: Waiting for purge to start
2019-11-13T13:15:38.944278Z 0 [Note] InnoDB: 5.7.19 started; log sequence number 9497143289
2019-11-13T13:15:38.944944Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2019-11-13T13:15:38.945011Z 0 [Note] Plugin 'FEDERATED' is disabled.
2019-11-13T13:15:38.952994Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
2019-11-13T13:15:38.955057Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2019-11-13T13:15:38.955129Z 0 [Note] IPv6 is available.
2019-11-13T13:15:38.955158Z 0 [Note]   - '::' resolves to '::';
2019-11-13T13:15:38.955203Z 0 [Note] Server socket created on IP: '::'.
2019-11-13T13:15:38.992307Z 0 [Note] InnoDB: Buffer pool(s) load completed at 191113 13:15:38
2019-11-13T13:15:39.014621Z 0 [Note] Event Scheduler: Loaded 0 events
2019-11-13T13:15:39.016135Z 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.7.19-0ubuntu0.16.04.1-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)
2019-11-13T13:15:39.016187Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check. 
2019-11-13T13:15:39.016236Z 0 [Note] Beginning of list of non-natively partitioned tables
2019-11-13T13:15:39.174831Z 0 [Note] End of list of non-natively partitioned tables

,下图显示了/ var / lib / mysql / old_database目录中存在的文件 ls -l /var/lib/mysql/old_database

phpadmin的输出如下:

./libraries/dbi/DBIMysqli.class.php#261 

    mysqli_query(): MySQL server has gone away

Backtrace
./libraries/dbi/DBIMysqli.class.php#261:

    mysqli_query(
    object,
    string 'DROP DATABASE `old_database`',
    integer 0,
    )

./libraries/DatabaseInterface.class.php#244: 

    PMA_DBI_Mysqli->realQuery(
    string 'DROP DATABASE `old_database`',
    object,
    integer 0,
    )


./libraries/DatabaseInterface.class.php#94: 

    PMA_DatabaseInterface->tryQuery(
    string 'DROP DATABASE `old_database`',
    object,
    integer 0,
    boolean true,
    )

有人可以帮助我解决这些错误并删除空数据库吗?

0 个答案:

没有答案