当前位置:论坛首页 > Linux面板 > 求助

【待反馈】mysql5.7的问题1

发表在 Linux面板2022-10-18 21:07 [复制链接] 2 4562

配置文件信息正确,服务器配置也都够用(16G)内存

站点运行一段时间就会出现“wordpress建立数据库连接时出错”

重启服务器会好一段时间,一天重挂掉个3、5次,求助运维大佬
JR]UA3UD96`P15C3J5NCXD7.png
使用道具 举报 只看该作者 回复
发表于 2022-10-18 21:08:58 | 显示全部楼层
本帖最后由 宝塔用户_gcckhy 于 2022-10-18 21:14 编辑
  1. 2022-10-18T12:28:55.936522Z 43 [ERROR] /www/server/mysql/bin/mysqld: Table './tumengcom/wp_options' is marked as crashed and should be repaired
  2. 2022-10-18T12:29:11.970590Z 62 [ERROR] /www/server/mysql/bin/mysqld: Table './tumengcom/wp_options' is marked as crashed and should be repaired
  3. 2022-10-18T12:29:11.997096Z 46 [Note] Found 705 of 707 rows when repairing './tumengcom/wp_options'

  4. Status information:

  5. Current dir: /www/server/data/
  6. Running threads: 3  Stack size: 524288
  7. Current locks:
  8. lock: 0x2b52401b6810:

  9. lock: 0x2b52401b9e30:

  10. lock: 0x2b524c09df20:

  11. lock: 0x2b524c0959c0:

  12. lock: 0x2b524c08bc40:

  13. lock: 0x2b524c088c40:

  14. lock: 0x2b524c07a9d0:

  15. lock: 0x2b524c073c40:

  16. lock: 0x2b524c0211b0:

  17. lock: 0x2b524c010410:

  18. lock: 0x2b52440069f0:

  19. lock: 0x2b524426bc30:

  20. lock: 0x2b52445f8ac0:

  21. lock: 0x2b52445e0c80:

  22. lock: 0x2b52445d9c30:

  23. lock: 0x2b52445d4bb0:

  24. lock: 0x2b52445ceef0:

  25. lock: 0x2b52445c01a0:

  26. lock: 0x2b52445b4f20:

  27. lock: 0x2b52445af410:

  28. lock: 0x2b52445a8c50:

  29. lock: 0x2b52445a1db0:

  30. lock: 0x2b5244593320:

  31. lock: 0x2b524458e610:

  32. lock: 0x2b524417f950:

  33. lock: 0x2b5244178af0:

  34. lock: 0x2b5244171120:

  35. lock: 0x2b524416b930:

  36. lock: 0x2b52440e2050:

  37. lock: 0x2b5240193530:

  38. lock: 0x2b5234b19e70:

  39. lock: 0x2b5234b712a0:

  40. lock: 0x2b5234b623d0:

  41. lock: 0x2b5234b5c590:

  42. lock: 0x2b5234b53990:

  43. lock: 0x2b5240148c30:

  44. lock: 0x9d45bb0:

  45. lock: 0x9cdb500:

  46. lock: 0x9cbde30:

  47. lock: 0x9cccfb0:

  48. lock: 0x9cac1e0:

  49. lock: 0x9ca57b0:

  50. lock: 0x9c9dd60:

  51. lock: 0x1de8460:

  52. lock: 0x1deb800:

  53. lock: 0x1deb720:

  54. lock: 0x1deb640:

  55. lock: 0x1deb560:

  56. lock: 0x1deb480:

  57. lock: 0x1deb3a0:

  58. lock: 0x1deb2c0:

  59. lock: 0x1deb1e0:

  60. lock: 0x1deb100:

  61. lock: 0x1debe20:

  62. lock: 0x1de8380:

  63. lock: 0x1dec6e0:

  64. lock: 0x1dec600:

  65. lock: 0x1dec520:

  66. lock: 0x1dec440:

  67. lock: 0x1dec360:

  68. lock: 0x1dec280:

  69. lock: 0x1dec1a0:

  70. lock: 0x1dec0c0:

  71. lock: 0x1de9ce0:

  72. lock: 0x1deb8e0:

  73. lock: 0x1dea140:

  74. lock: 0x1dea060:

  75. lock: 0x1de9f80:

  76. lock: 0x1de9ea0:

  77. lock: 0x1de9dc0:

  78. lock: 0x1debfe0:

  79. lock: 0x1debf00:

  80. lock: 0x1dea5a0:

  81. lock: 0x1dea4c0:

  82. lock: 0x1dea3e0:

  83. lock: 0x1dea760:

  84. lock: 0x1de7ac0:

  85. lock: 0x1debd40:

  86. lock: 0x1de8b60:

  87. lock: 0x1de88c0:

  88. lock: 0x1de8a80:

  89. lock: 0x1de87e0:

  90. lock: 0x1de89a0:

  91. lock: 0x1de9180:

  92. lock: 0x1de9260:

  93. lock: 0x1de9340:

  94. lock: 0x1de82a0:

  95. lock: 0x1de81c0:

  96. lock: 0x1de8700:

  97. lock: 0x1de80e0:

  98. lock: 0x1de8620:

  99. lock: 0x1de8000:

  100. lock: 0x1de8540:

  101. lock: 0x1de8ee0:

  102. lock: 0x1de8fc0:

  103. lock: 0x1de90a0:

  104. lock: 0x1de7f20:

  105. lock: 0x1de7c80:

  106. lock: 0x1de7e40:

  107. lock: 0x1de7ba0:


  108. Key caches:
  109. default
  110. Buffer_size:    1073741824
  111. Block_size:           1024
  112. Division_limit:        100
  113. Age_limit:             300
  114. blocks used:         57914
  115. not flushed:             0
  116. w_requests:            685
  117. writes:                683
  118. r_requests:        4681815
  119. reads:              173743


  120. handler status:
  121. read_key:      5343984
  122. read_next:     8281215
  123. read_rnd        681643
  124. read_first:        825
  125. write:         2860189
  126. delete              29
  127. update:           1921

  128. Table status:
  129. Opened tables:        633
  130. Open tables:          409
  131. Open files:           360
  132. Open streams:           0

  133. Memory status:
  134. <malloc version="1">
  135. <heap nr="0">
  136. <sizes>
  137.   <size from="17" to="32" total="64" count="2"/>
  138.   <size from="33" to="48" total="144" count="3"/>
  139.   <size from="97" to="97" total="3201" count="33"/>
  140.   <size from="113" to="113" total="3729" count="33"/>
  141.   <size from="193" to="193" total="193" count="1"/>
  142.   <size from="225" to="225" total="450" count="2"/>
  143.   <size from="241" to="241" total="241" count="1"/>
  144.   <size from="609" to="609" total="609" count="1"/>
  145.   <size from="6881" to="6881" total="6881" count="1"/>
  146.   <size from="16369" to="16369" total="49107" count="3"/>
  147.   <size from="16433" to="16433" total="16433" count="1"/>
  148.   <size from="24529" to="24529" total="98116" count="4"/>
  149.   <size from="32689" to="32689" total="32689" count="1"/>
  150.   <unsorted from="65" to="65" total="65" count="1"/>
  151. </sizes>
  152. <total type="fast" count="5" size="208"/>
  153. <total type="rest" count="82" size="211714"/>
  154. <system type="current" size="122257408"/>
  155. <system type="max" size="122257408"/>
  156. <aspace type="total" size="122257408"/>
  157. <aspace type="mprotect" size="122257408"/>
  158. </heap>
  159. <heap nr="1">
  160. <sizes>
  161. </sizes>
  162. <total type="fast" count="0" size="0"/>
  163. <total type="rest" count="0" size="0"/>
  164. <system type="current" size="364544"/>
  165. <system type="max" size="364544"/>
  166. <aspace type="total" size="364544"/>
  167. <aspace type="mprotect" size="364544"/>
  168. </heap>
  169. <heap nr="2">
  170. <sizes>
  171.   <size from="81" to="96" total="192" count="2"/>
  172.   <size from="33" to="33" total="33" count="1"/>
  173.   <size from="65" to="65" total="195" count="3"/>
  174.   <size from="113" to="113" total="113" count="1"/>
  175.   <size from="273" to="273" total="273" count="1"/>
  176.   <size from="289" to="289" total="578" count="2"/>
  177.   <size from="593" to="593" total="593" count="1"/>
  178.   <size from="625" to="625" total="625" count="1"/>
  179.   <size from="737" to="737" total="737" count="1"/>
  180.   <size from="913" to="913" total="913" count="1"/>
  181.   <size from="929" to="929" total="1858" count="2"/>
  182.   <size from="1009" to="1009" total="2018" count="2"/>
  183.   <size from="1025" to="1025" total="1025" count="1"/>
  184.   <size from="1153" to="1201" total="2354" count="2"/>
  185.   <size from="1345" to="1345" total="1345" count="1"/>
  186.   <size from="8209" to="8209" total="8209" count="1"/>
  187.   <size from="180721" to="180721" total="180721" count="1"/>
  188.   <unsorted from="8209" to="8209" total="8209" count="1"/>
  189. </sizes>
  190. <total type="fast" count="2" size="192"/>
  191. <total type="rest" count="23" size="209799"/>
  192. <system type="current" size="18067456"/>
  193. <system type="max" size="18067456"/>
  194. <aspace type="total" size="18067456"/>
  195. <aspace type="mprotect" size="18067456"/>
  196. </heap>
  197. <heap nr="3">
  198. <sizes>
  199.   <size from="49" to="64" total="64" count="1"/>
  200.   <size from="81" to="96" total="288" count="3"/>
  201.   <size from="33" to="33" total="33" count="1"/>
  202.   <size from="273" to="273" total="273" count="1"/>
  203.   <size from="353" to="353" total="353" count="1"/>
  204.   <size from="385" to="385" total="385" count="1"/>
  205.   <size from="449" to="449" total="449" count="1"/>
  206.   <size from="481" to="481" total="481" count="1"/>
  207.   <size from="721" to="721" total="721" count="1"/>
  208.   <size from="769" to="769" total="769" count="1"/>
  209.   <size from="929" to="929" total="929" count="1"/>
  210.   <size from="977" to="977" total="977" count="1"/>
  211.   <size from="1025" to="1025" total="2050" count="2"/>
  212.   <unsorted from="49" to="40497" total="67896" count="8"/>
  213. </sizes>
  214. <total type="fast" count="4" size="352"/>
  215. <total type="rest" count="20" size="75316"/>
  216. <system type="current" size="18542592"/>
  217. <system type="max" size="18542592"/>
  218. <aspace type="total" size="18542592"/>
  219. <aspace type="mprotect" size="18542592"/>
  220. </heap>
  221. <heap nr="4">
  222. <sizes>
  223.   <size from="33" to="48" total="240" count="5"/>
  224.   <size from="49" to="64" total="192" count="3"/>
  225.   <size from="113" to="128" total="128" count="1"/>
  226.   <size from="129" to="129" total="129" count="1"/>
  227.   <size from="145" to="145" total="145" count="1"/>
  228.   <size from="289" to="289" total="289" count="1"/>
  229.   <size from="305" to="305" total="305" count="1"/>
  230.   <size from="401" to="401" total="401" count="1"/>
  231.   <size from="417" to="417" total="834" count="2"/>
  232.   <size from="433" to="433" total="1299" count="3"/>
  233.   <size from="497" to="497" total="497" count="1"/>
  234.   <size from="529" to="529" total="529" count="1"/>
  235.   <size from="561" to="561" total="1122" count="2"/>
  236.   <size from="609" to="609" total="1827" count="3"/>
  237.   <size from="641" to="641" total="1923" count="3"/>
  238.   <size from="657" to="657" total="657" count="1"/>
  239.   <size from="689" to="689" total="689" count="1"/>
  240.   <size from="705" to="705" total="1410" count="2"/>
  241.   <size from="737" to="737" total="737" count="1"/>
  242.   <size from="769" to="769" total="769" count="1"/>
  243.   <size from="785" to="785" total="785" count="1"/>
  244.   <size from="801" to="801" total="1602" count="2"/>
  245.   <size from="817" to="817" total="1634" count="2"/>
  246.   <size from="833" to="833" total="833" count="1"/>
  247.   <size from="849" to="849" total="849" count="1"/>
  248.   <size from="865" to="865" total="1730" count="2"/>
  249.   <size from="881" to="881" total="1762" count="2"/>
  250.   <size from="897" to="897" total="1794" count="2"/>
  251.   <size from="913" to="913" total="913" count="1"/>
  252.   <size from="929" to="929" total="1858" count="2"/>
  253.   <size from="945" to="945" total="945" count="1"/>
  254.   <size from="977" to="977" total="977" count="1"/>
  255.   <size from="993" to="993" total="993" count="1"/>
  256.   <size from="2113" to="2113" total="2113" count="1"/>
  257.   <size from="5873" to="5873" total="5873" count="1"/>
  258.   <size from="55153" to="56161" total="111314" count="2"/>
  259.   <size from="100641" to="100641" total="100641" count="1"/>
  260.   <size from="3250625" to="3250625" total="3250625" count="1"/>
  261.   <unsorted from="33" to="262193" total="465711" count="47"/>
  262. </sizes>
  263. <total type="fast" count="9" size="560"/>
  264. <total type="rest" count="98" size="3966514"/>
  265. <system type="current" size="23040000"/>
  266. <system type="max" size="23040000"/>
  267. <aspace type="total" size="23040000"/>
  268. <aspace type="mprotect" size="23040000"/>
  269. </heap>
  270. <heap nr="5">
  271. <sizes>
  272.   <size from="81" to="96" total="192" count="2"/>
  273.   <size from="49" to="49" total="98" count="2"/>
  274.   <size from="65" to="65" total="325" count="5"/>
  275.   <size from="97" to="97" total="97" count="1"/>
  276.   <size from="129" to="129" total="129" count="1"/>
  277.   <size from="257" to="257" total="257" count="1"/>
  278.   <size from="289" to="289" total="289" count="1"/>
  279.   <size from="385" to="385" total="385" count="1"/>
  280.   <size from="449" to="449" total="898" count="2"/>
  281.   <size from="465" to="465" total="1395" count="3"/>
  282.   <size from="513" to="513" total="2052" count="4"/>
  283.   <size from="529" to="529" total="529" count="1"/>
  284.   <size from="561" to="561" total="2805" count="5"/>
  285.   <size from="577" to="577" total="1154" count="2"/>
  286.   <size from="593" to="593" total="1186" count="2"/>
  287.   <size from="609" to="609" total="1218" count="2"/>
  288.   <size from="625" to="625" total="625" count="1"/>
  289.   <size from="641" to="641" total="1923" count="3"/>
  290.   <size from="657" to="657" total="2628" count="4"/>
  291.   <size from="673" to="673" total="673" count="1"/>
  292.   <size from="721" to="721" total="721" count="1"/>
  293.   <size from="753" to="753" total="3012" count="4"/>
  294.   <size from="769" to="769" total="769" count="1"/>
  295.   <size from="785" to="785" total="1570" count="2"/>
  296.   <size from="817" to="817" total="817" count="1"/>
  297.   <size from="833" to="833" total="2499" count="3"/>
  298.   <size from="849" to="849" total="849" count="1"/>
  299.   <size from="865" to="865" total="865" count="1"/>
  300.   <size from="897" to="897" total="897" count="1"/>
  301.   <size from="913" to="913" total="1826" count="2"/>
  302.   <size from="929" to="929" total="3716" count="4"/>
  303.   <size from="945" to="945" total="945" count="1"/>
  304.   <size from="977" to="977" total="977" count="1"/>
  305.   <size from="1025" to="1025" total="1025" count="1"/>
  306.   <size from="1201" to="1201" total="3603" count="3"/>
  307.   <size from="20881" to="20881" total="20881" count="1"/>
  308.   <size from="32817" to="32817" total="32817" count="1"/>
  309.   <size from="54209" to="61857" total="290133" count="5"/>
  310.   <size from="67537" to="91761" total="328324" count="4"/>
  311.   <size from="127633" to="127633" total="127633" count="1"/>
  312.   <size from="147377" to="149009" total="296386" count="2"/>
  313.   <unsorted from="9425" to="9425" total="9425" count="1"/>
  314. </sizes>
  315. <total type="fast" count="2" size="192"/>
  316. <total type="rest" count="84" size="1148356"/>
  317. <system type="current" size="19714048"/>
  318. <system type="max" size="19714048"/>
  319. <aspace type="total" size="19714048"/>
  320. <aspace type="mprotect" size="19714048"/>
  321. </heap>
  322. <heap nr="6">
  323. <sizes>
  324.   <size from="33" to="48" total="48" count="1"/>
  325. </sizes>
  326. <total type="fast" count="1" size="48"/>
  327. <total type="rest" count="0" size="0"/>
  328. <system type="current" size="135168"/>
  329. <system type="max" size="135168"/>
  330. <aspace type="total" size="135168"/>
  331. <aspace type="mprotect" size="135168"/>
  332. </heap>
  333. <heap nr="7">
  334. <sizes>
  335.   <size from="33" to="48" total="48" count="1"/>
  336. </sizes>
  337. <total type="fast" count="1" size="48"/>
  338. <total type="rest" count="0" size="0"/>
  339. <system type="current" size="135168"/>
  340. <system type="max" size="135168"/>
  341. <aspace type="total" size="135168"/>
  342. <aspace type="mprotect" size="135168"/>
  343. </heap>
  344. <heap nr="8">
  345. <sizes>
  346.   <size from="33" to="48" total="48" count="1"/>
  347.   <size from="49" to="64" total="256" count="4"/>
  348.   <size from="113" to="128" total="128" count="1"/>
  349.   <size from="417" to="417" total="417" count="1"/>
  350.   <size from="433" to="433" total="433" count="1"/>
  351.   <size from="449" to="449" total="898" count="2"/>
  352.   <size from="465" to="465" total="465" count="1"/>
  353.   <size from="497" to="497" total="994" count="2"/>
  354.   <size from="577" to="577" total="577" count="1"/>
  355.   <size from="609" to="609" total="609" count="1"/>
  356.   <size from="625" to="625" total="625" count="1"/>
  357.   <size from="657" to="657" total="1971" count="3"/>
  358.   <size from="753" to="753" total="753" count="1"/>
  359.   <size from="769" to="769" total="769" count="1"/>
  360.   <size from="865" to="865" total="865" count="1"/>
  361.   <size from="881" to="881" total="881" count="1"/>
  362.   <size from="897" to="897" total="897" count="1"/>
  363.   <size from="913" to="913" total="913" count="1"/>
  364.   <size from="929" to="929" total="929" count="1"/>
  365.   <size from="945" to="945" total="945" count="1"/>
  366.   <size from="961" to="961" total="961" count="1"/>
  367.   <size from="977" to="977" total="1954" count="2"/>
  368.   <size from="1025" to="1025" total="1025" count="1"/>
  369.   <size from="18817" to="18817" total="18817" count="1"/>
  370.   <unsorted from="33" to="119185" total="188911" count="47"/>
  371. </sizes>
  372. <total type="fast" count="6" size="432"/>
  373. <total type="rest" count="73" size="225609"/>
  374. <system type="current" size="41517056"/>
  375. <system type="max" size="41517056"/>
  376. <aspace type="total" size="41517056"/>
  377. <aspace type="mprotect" size="41517056"/>
  378. </heap>
  379. <heap nr="9">
  380. <sizes>
  381.   <unsorted from="497" to="497" total="497" count="1"/>
  382. </sizes>
  383. <total type="fast" count="0" size="0"/>
  384. <total type="rest" count="1" size="497"/>
  385. <system type="current" size="135168"/>
  386. <system type="max" size="135168"/>
  387. <aspace type="total" size="135168"/>
  388. <aspace type="mprotect" size="135168"/>
  389. </heap>
  390. <heap nr="10">
  391. <sizes>
  392.   <size from="113" to="113" total="113" count="1"/>
  393. </sizes>
  394. <total type="fast" count="0" size="0"/>
  395. <total type="rest" count="1" size="113"/>
  396. <system type="current" size="147456"/>
  397. <system type="max" size="147456"/>
  398. <aspace type="total" size="147456"/>
  399. <aspace type="mprotect" size="147456"/>
  400. </heap>
  401. <heap nr="11">
  402. <sizes>
  403.   <size from="113" to="113" total="113" count="1"/>
  404. </sizes>
  405. <total type="fast" count="0" size="0"/>
  406. <total type="rest" count="1" size="113"/>
  407. <system type="current" size="147456"/>
  408. <system type="max" size="147456"/>
  409. <aspace type="total" size="147456"/>
  410. <aspace type="mprotect" size="147456"/>
  411. </heap>
  412. <heap nr="12">
  413. <sizes>
  414.   <size from="113" to="113" total="113" count="1"/>
  415. </sizes>
  416. <total type="fast" count="0" size="0"/>
  417. <total type="rest" count="1" size="113"/>
  418. <system type="current" size="147456"/>
  419. <system type="max" size="147456"/>
  420. <aspace type="total" size="147456"/>
  421. <aspace type="mprotect" size="147456"/>
  422. </heap>
  423. <heap nr="13">
  424. <sizes>
  425.   <size from="113" to="113" total="113" count="1"/>
  426. </sizes>
  427. <total type="fast" count="0" size="0"/>
  428. <total type="rest" count="1" size="113"/>
  429. <system type="current" size="135168"/>
  430. <system type="max" size="135168"/>
  431. <aspace type="total" size="135168"/>
  432. <aspace type="mprotect" size="135168"/>
  433. </heap>
  434. <heap nr="14">
  435. <sizes>
  436. </sizes>
  437. <total type="fast" count="0" size="0"/>
  438. <total type="rest" count="0" size="0"/>
  439. <system type="current" size="135168"/>
  440. <system type="max" size="135168"/>
  441. <aspace type="total" size="135168"/>
  442. <aspace type="mprotect" size="135168"/>
  443. </heap>
  444. <total type="fast" count="30" size="2032"/>
  445. <total type="rest" count="385" size="5838257"/>
  446. <total type="mmap" count="83" size="2017091584"/>
  447. <system type="current" size="244621312"/>
  448. <system type="max" size="244621312"/>
  449. <aspace type="total" size="244621312"/>
  450. <aspace type="mprotect" size="244621312"/>
  451. </malloc>



  452. Events status:
  453. LLA = Last Locked At  LUA = Last Unlocked At
  454. WOC = Waiting On Condition  DL = Data Locked

  455. Event scheduler status:
  456. State      : INITIALIZED
  457. Thread id  : 0
  458. LLA        : n/a:0
  459. LUA        : n/a:0
  460. WOC        : NO
  461. Workers    : 0
  462. Executed   : 0
  463. Data locked: NO

  464. Event queue status:
  465. Element count   : 0
  466. Data locked     : NO
  467. Attempting lock : NO
  468. LLA             : init_queue:103
  469. LUA             : init_queue:111
  470. WOC             : NO
  471. Next activation : never
复制代码

使用道具 举报 回复 支持 反对
发表于 2022-10-18 21:27:09 | 显示全部楼层
您好!服务器命令行执行以下命令查看MySQL错误日志,  截图看一下结果
  1. cat /www/server/data/*.err|grep -i -C 10 error
复制代码
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

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