- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经开始让mysql崩溃并重新启动。系统已经完全稳定,这在创建下表后开始发生。我使用 INSERT INTO
成功插入了大约 210,000 条记录命令。但后来我注意到运行简单 INSERT
时服务器出现故障和 UPDATE
和 SELECT
命令。
例如,当我运行以下查询时服务器崩溃:SELECT * FROM tipstrade_2.tblVehicleLookups limit 1
任何识别问题的提示将不胜感激。
CREATE TABLE `tblVehicleLookups` (
`fldID` int(11) NOT NULL AUTO_INCREMENT,
`fldTicketID` char(12) NOT NULL,
`fldVRM` varchar(10) NOT NULL,
`fldVIN` char(17) NOT NULL,
`fldMake` varchar(32) NOT NULL,
`fldModel` varchar(32) NOT NULL,
`fldVehicle` varchar(255) NOT NULL,
`fldDiscriminator` varchar(255) NOT NULL,
`fldData` text NOT NULL,
`fldPrice` decimal(5,2) DEFAULT NULL,
`fldFreeAfter` date NOT NULL DEFAULT '0001-01-01',
`fldIsFree` bit(1) GENERATED ALWAYS AS (`fldFreeAfter` < cast(current_timestamp() as date)) VIRTUAL,
`fldCreated` datetime NOT NULL DEFAULT current_timestamp(),
`fldModified` datetime DEFAULT NULL ON UPDATE current_timestamp(),
`fldCarWebID` int(11) DEFAULT NULL,
PRIMARY KEY (`fldID`),
UNIQUE KEY `fldCarWebID` (`fldCarWebID`),
KEY `fldVRM` (`fldVRM`),
KEY `fldVIN` (`fldVIN`)
) ENGINE=InnoDB AUTO_INCREMENT=1310702 DEFAULT CHARSET=utf8
错误日志
pure virtual method called
terminate called without an active exception
210215 13:12:40 [ERROR] 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.
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.2.36-MariaDB-10.2.36+maria~xenial-log
key_buffer_size=1073741824
read_buffer_size=2097152
max_used_connections=152
max_threads=202
thread_count=153
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 2087104 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x7f016c0009a8
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 = 0x7f039d60fcc8 thread_stack 0x49000
/usr/sbin/mysqld(my_print_stacktrace+0x2e)[0x561b050f699e]
/usr/sbin/mysqld(handle_fatal_signal+0x305)[0x561b04ba90d5]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f0831b60390]
linux/raise.c:54(__GI_raise)[0x7f083112f438]
stdlib/abort.c:91(__GI_abort)[0x7f083113103a]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x16d)[0x7f083185c84d]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8d6b6)[0x7f083185a6b6]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8d701)[0x7f083185a701]
/usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8e23f)[0x7f083185b23f]
/usr/sbin/mysqld(_ZN4Item24get_date_with_conversionEP13st_mysql_timey+0x31)[0x561b04bbdf21]
/usr/sbin/mysqld(+0x459aaa)[0x561b04978aaa]
/usr/sbin/mysqld(_ZN14Arg_comparator16compare_temporalE16enum_field_types+0x4b)[0x561b04bdc09b]
/usr/sbin/mysqld(_ZN12Item_func_lt7val_intEv+0x2f)[0x561b04bd3abf]
/usr/sbin/mysqld(_ZN4Item13save_in_fieldEP5Fieldb+0x15c)[0x561b04bb86cc]
/usr/sbin/mysqld(_ZN5TABLE21update_virtual_fieldsEP7handler21enum_vcol_update_mode+0x13b)[0x561b04aba0bb]
/usr/sbin/mysqld(_ZN7handler11ha_rnd_nextEPh+0x1ba)[0x561b04badada]
/usr/sbin/mysqld(_Z13rr_sequentialP11READ_RECORD+0x35)[0x561b04cb7cc5]
/usr/sbin/mysqld(_Z10sub_selectP4JOINP13st_join_tableb+0x164)[0x561b04a3e5e4]
/usr/sbin/mysqld(_ZN4JOIN10exec_innerEv+0xb8b)[0x561b04a5e76b]
/usr/sbin/mysqld(_ZN4JOIN4execEv+0x33)[0x561b04a5e973]
/usr/sbin/mysqld(_Z12mysql_selectP3THDP10TABLE_LISTjR4ListI4ItemEPS4_jP8st_orderS9_S7_S9_yP13select_resultP18st_select_lex_unitP13st_select_lex+0xeb)[0x561b04a5eabb]
/usr/sbin/mysqld(_Z13handle_selectP3THDP3LEXP13select_resultm+0x12f)[0x561b04a5f3cf]
/usr/sbin/mysqld(+0x41b779)[0x561b0493a779]
/usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x32ac)[0x561b04a08d5c]
/usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_statebb+0x26e)[0x561b04a0e24e]
/usr/sbin/mysqld(_Z16dispatch_command19enum_server_commandP3THDPcjbb+0xba6)[0x561b04a0fb26]
/usr/sbin/mysqld(_Z10do_commandP3THD+0x10c)[0x561b04a1184c]
/usr/sbin/mysqld(_Z24do_handle_one_connectionP7CONNECT+0x272)[0x561b04adfae2]
/usr/sbin/mysqld(handle_one_connection+0x3d)[0x561b04adfc3d]
/usr/sbin/mysqld(+0x818891)[0x561b04d37891]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f0831b566ba]
x86_64/clone.S:111(clone)[0x7f08312014dd]
Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0x7f016c00f120): SELECT * FROM tipstrade_2.tblVehicleLookups
limit 1
Connection ID (thread ID): 8202
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,orderby_uses_equalities=on,condition_pushdown_for_derived=on
The manual page at https://mariadb.com/kb/en/how-to-produce-a-full-stack-trace-for-mysqld/ contains
information that should help you find out what is causing the crash.
Writing a core file...
Working directory at /home/mysql
Resource Limits:
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 256349 256349 processes
Max open files 65533 65533 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 256349 256349 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
Core pattern: |/usr/share/apport/apport %p %s %c %d %P %E
2021-02-15 13:12:51 140611253319872 [Note] Using unique option prefix 'myisam_recover' is error-prone and can break in the future. Please use the full name 'myisam-recover-options' instead.
2021-02-15 13:12:51 140611253319872 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2021-02-15 13:12:51 140611253319872 [Note] InnoDB: Uses event mutexes
2021-02-15 13:12:51 140611253319872 [Note] InnoDB: Compressed tables use zlib 1.2.8
2021-02-15 13:12:51 140611253319872 [Note] InnoDB: Using Linux native AIO
2021-02-15 13:12:51 140611253319872 [Note] InnoDB: Number of pools: 1
2021-02-15 13:12:51 140611253319872 [Note] InnoDB: Using SSE2 crc32 instructions
2021-02-15 13:12:51 140611253319872 [Note] InnoDB: Initializing buffer pool, total size = 16G, instances = 16, chunk size = 128M
2021-02-15 13:12:51 140611253319872 [Note] InnoDB: Completed initialization of buffer pool
2021-02-15 13:12:51 140591352649472 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-02-15 13:12:51 140611253319872 [Note] InnoDB: Highest supported file format is Barracuda.
2021-02-15 13:12:51 140611253319872 [Note] InnoDB: Starting crash recovery from checkpoint LSN=513506676876
2021-02-15 13:12:52 140611253319872 [Note] InnoDB: Last binlog file './tipstrade04-bin.004023', position 29799719
2021-02-15 13:12:52 140611253319872 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-02-15 13:12:52 140611253319872 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2021-02-15 13:12:52 140611253319872 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-02-15 13:12:52 140611253319872 [Note] InnoDB: Setting file '/var/lib/mysql/ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-02-15 13:12:52 140611253319872 [Note] InnoDB: File '/var/lib/mysql/ibtmp1' size is now 12 MB.
2021-02-15 13:12:52 140611253319872 [Note] InnoDB: 5.7.32 started; log sequence number 513506676885
2021-02-15 13:12:52 140591702722304 [Note] InnoDB: Loading buffer pool(s) from /home/mysql/ib_buffer_pool
2021-02-15 13:12:52 140611253319872 [Note] Plugin 'FEEDBACK' is disabled.
2021-02-15 13:12:52 140611253319872 [Note] Recovering after a crash using tipstrade04-bin
2021-02-15 13:12:52 140611253319872 [Note] Starting crash recovery...
2021-02-15 13:12:52 140611253319872 [Note] Crash recovery finished.
2021-02-15 13:12:52 140611253319872 [Note] Server socket created on IP: '::'.
2021-02-15 13:12:52 140611253319872 [Warning] 'proxies_priv' entry '@% root@tipstrade03' ignored in --skip-name-resolve mode.
2021-02-15 13:12:52 140611253319872 [ERROR] mysqld: Table './mysql/event' is marked as crashed and should be repaired
2021-02-15 13:12:52 140611253319872 [Warning] Checking table: './mysql/event'
2021-02-15 13:12:52 140611253319872 [ERROR] mysql.event: 1 client is using or hasn't closed the table properly
2021-02-15 13:12:52 140611060475648 [Note] Event Scheduler: scheduler thread started with id 7
2021-02-15 13:12:52 140611253319872 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.2.36-MariaDB-10.2.36+maria~xenial-log' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
2021-02-15 13:12:55 140609785124608 [ERROR] mysqld: Table './asteriskcdrdb/cel' is marked as crashed and should be repaired
2021-02-15 13:12:55 140609785124608 [Warning] Checking table: './asteriskcdrdb/cel'
2021-02-15 13:12:56 140609782699776 [ERROR] mysqld: Table './asteriskcdrdb/cdr' is marked as crashed and should be repaired
2021-02-15 13:12:56 140609782699776 [Warning] Checking table: './asteriskcdrdb/cdr'
2021-02-15 13:13:03 140611059566336 [ERROR] mysqld: Table './tipstrade_2/tblTicketsOffers' is marked as crashed and should be repaired
2021-02-15 13:13:03 140611059566336 [Warning] Checking table: './tipstrade_2/tblTicketsOffers'
2021-02-15 13:13:16 140591702722304 [Note] InnoDB: Buffer pool(s) load completed at 210215 13:13:16
2021-02-15 13:26:53 140591588833024 [ERROR] mysqld: Table './tipstrade_2/tblPrintQueue' is marked as crashed and should be repaired
2021-02-15 13:26:53 140591588833024 [Warning] Checking table: './tipstrade_2/tblPrintQueue'
系统信息
free
的输出
total used free shared buff/cache available
Mem: 65838544 9670572 11002756 170796 45165216 55299216
Swap: 7812092 19924 7792168
最佳答案
我从来没有深究这一点。最后我咬紧牙关,从 10.2 -> 10.3 -> 10.4 -> 10.5 升级,确保运行 mysql_upgrade
在每次更新之间(连同 mysql
数据目录的完整备份,它派上用场!)。
从那时起,我一直在愉快地阅读、插入、更新和删除有问题的表中的数十万条记录,并且数据库没有跳过一个节拍。
我唯一的解释是:
mysql_upgrade
解决了这个问题。 关于ubuntu - mysqld 在运行简单查询时收到信号 6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66209077/
我有一个静态类。 static class AppDirectory { public static string PACSTEMP = Path.Combine(Path.GetTempPa
我已经设置了一个启用了推送通知的 iOS 应用。 我可以将消息推送到应用程序,例如角标(Badge)计数工作并相应更新。 但我从未在锁屏或其他地方看到标准的推送通知弹出窗口,但手机会振动,因此消息会通
我们有一个带有 Web 应用程序和一堆 Windows 服务的系统,它们在做一些后台工作。 每当我们需要对系统进行更实质性的更改时,我们最终不得不发出 IIS 重置,然后手动重新启动所有相关的 Win
我有以下几行 John SMith: A Pedro Smith: B Jonathan B: A John B: B Luis Diaz: A Scarlet Diaz: B 我需要获得所有获得
我正在编写一个 Java 客户端(在 weblogic 10.3 上)来调用一个安全的网络服务。我已获得安装在 cacerts、DemoIdentity.jks 和 DemoTrust,jks 中的客
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎偏离主题,因为它缺乏足够的信息来诊断问题。 更详细地描述您的问题或 include a mini
我正在尝试调用void方法addToList,该方法将通过用户传递给它的两个字符串除外。我检查了dataSource类,以确保它确实接受了那些作为参数。问题是我在该方法调用上始终收到标识符>预期错误,
我的任务:使用scanner方法从一行数据中提取字符串、 float 和整数。 数据格式为: Random String, 240.5 51603 Another String, 41.6 59087
这个问题已经有答案了: What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? (25 个回答)
首先我实例化一个游戏状态 class GameState extends state{ ArrayList levels; int currentLevelID; public GameState()
已关闭。这个问题是 not reproducible or was caused by typos 。目前不接受答案。 这个问题是由拼写错误或无法再重现的问题引起的。虽然类似的问题可能是 on-top
我有一个实现为单例的 Controller 对象,它有一个可以随时驱逐对象的缓存。当一个对象即将被删除时,我想通知任何使用此 Controller 的类,以便它们能够做出适当的响应。我对这种行为的第一
因此,我尝试跨集群发送消息,该消息将包含一个 User 对象,该对象是一个可序列化类。 当我发送 String 或 int 时,它工作正常,消息发送没有问题,并且集群上的所有 channel 都收到它
我试图创建的程序是一个基本游戏,用户输入网格大小,选择 block 接收增加分数的奖品、从分数中夺走分数的强盗或结束游戏的炸弹。我收到堆栈流错误,但我不明白为什么? 抱歉,代码量很大,我只是无法找到问
使用此代码我会得到什么ConcurrentModificationException?我有一个同步(监听器)锁。 private void notifyListeners(MediumRenditio
我想在捕获 DeadlineExceededError 后正确退出。我还剩下多少钱来清理? 例如, try: do_some_work() except DeadlineExceededError
我有 2 个 Intranet 站点: http://intranetv1/ http://intranetv2/ v1基于.NET 1.1,v2基于.NET 3.5 在 v1 上,我创建了一个网页,
我有一个在 Linux 3.12 上运行的 C 程序。该程序产生几个子进程。其中一个进程会生成一个线程,该线程运行一段时间然后终止。当该子进程运行时,它会执行 epoll_wait()。 epoll_
我能够将 APNS 集成到我的应用程序中。现在我想在用户点击它或用户在使用应用程序时收到通知时处理通知。我使用下面的代码在收到通知时显示警报对话框: func application(applicat
当我试图在浏览器上运行这段代码时,出现了以下错误。"错误响应错误代码:501消息:不支持的方法(“POST”)。错误码解释:501-服务器不支持该操作。" 浏览器控制台出现以下错误: "1.加载资源失
我是一名优秀的程序员,十分优秀!