日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

cactiez mysql_cactiez使用mysql数据库出现以下报错:“[ERROR] /usr/sbin/mysqld”

發(fā)布時間:2023/12/15 数据库 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 cactiez mysql_cactiez使用mysql数据库出现以下报错:“[ERROR] /usr/sbin/mysqld” 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

[[email?protected] bin]# tail -f /var/log/mysqld.log

2018-03-02 15:54:17 31645 [ERROR] /usr/sbin/mysqld: Table ‘./cacti/poller_item‘ is marked as crashed and should be repaired

2018-03-02 15:54:17 31645 [ERROR] /usr/sbin/mysqld: Table ‘./cacti/poller_item‘ is marked as crashed and should be repaired

2018-03-02 15:54:17 31645 [ERROR] /usr/sbin/mysqld: Table ‘./cacti/poller_item‘ is marked as crashed and should be repaired

2018-03-02 15:54:17 31645 [ERROR] /usr/sbin/mysqld: Table ‘./cacti/poller_item‘ is marked as crashed and should be repaired

2018-03-02 15:54:17 31645 [ERROR] /usr/sbin/mysqld: Table ‘./cacti/poller_item‘ is marked as crashed and should be repaired

2018-03-02 15:54:17 31645 [ERROR] /usr/sbin/mysqld: Table ‘./cacti/poller_item‘ is marked as crashed and should be repaired

2018-03-02 15:54:17 31645 [ERROR] /usr/sbin/mysqld: Table ‘./cacti/poller_item‘ is marked as crashed and should be repaired

2018-03-02 15:54:17 31645 [ERROR] /usr/sbin/mysqld: Table ‘./cacti/poller_item‘ is marked as crashed and should be repaired

2018-03-02 15:54:17 31645 [ERROR] /usr/sbin/mysqld: Table ‘./cacti/poller_item‘ is marked as crashed and should be repaired

而且不斷快速的增長,通過日志發(fā)現(xiàn)是cacti的這張表出現(xiàn)了錯誤,經(jīng)過,排查經(jīng)過修復表結(jié)構(gòu),報錯結(jié)束,以下是修復過程。

通過使用 mysqlcheck --auto-repair --databases cacti -u root -p 來進行修復。

[[email?protected] bin]# mysqlcheck --auto-repair --databases cacti -u root -p

Enter password:

cacti.cdef OK

cacti.cdef_items OK

cacti.colors OK

cacti.data_input OK

cacti.data_input_data OK

cacti.data_input_fields OK

cacti.data_local OK

cacti.data_template OK

cacti.data_template_data OK

cacti.data_template_data_rra OK

cacti.data_template_rrd OK

cacti.graph_local OK

cacti.graph_template_input OK

cacti.graph_template_input_defs OK

cacti.graph_templates OK

cacti.graph_templates_gprint OK

cacti.graph_templates_graph OK

cacti.graph_templates_item OK

cacti.graph_tree OK

cacti.graph_tree_items OK

cacti.host OK

cacti.host_graph OK

cacti.host_snmp_cache OK

cacti.host_snmp_query OK

cacti.host_template OK

cacti.host_template_graph OK

cacti.host_template_snmp_query OK

cacti.plugin_config OK

cacti.plugin_db_changes OK

cacti.plugin_hooks OK

cacti.plugin_realms OK

cacti.poller OK

cacti.poller_command OK

cacti.poller_item

warning : Table is marked as crashed

warning : 2 clients are using or haven‘t closed the table properly

error : Unexpected byte: 0 at link: 95080

error : Corrupt

cacti.poller_output OK

cacti.poller_reindex OK

cacti.poller_time OK

cacti.rra OK

cacti.rra_cf OK

cacti.settings OK

cacti.settings_graphs OK

cacti.settings_tree OK

cacti.snmp_query OK

cacti.snmp_query_graph OK

cacti.snmp_query_graph_rrd OK

cacti.snmp_query_graph_rrd_sv OK

cacti.snmp_query_graph_sv OK

cacti.user_auth OK

cacti.user_auth_perms OK

cacti.user_auth_realm OK

cacti.user_log OK

cacti.version OK

cacti.weathermap_auth OK

cacti.weathermap_data OK

cacti.weathermap_groups OK

cacti.weathermap_maps OK

cacti.weathermap_settings OK

Repairing tables

cacti.poller_item

info : Wrong bytesec: 0- 0- 0 at 20912; Skipped

info : Found block with too small length at 87732; Skipped

info : Wrong bytesec: 0- 0- 0 at 21096; Skipped

info : Wrong bytesec: 57- 48- 57 at 21164; Skipped

info : Wrong bytesec: 46- 49- 48 at 28040; Skipped

info : Found block that points outside data file at 92696

info : Wrong bytesec: 0- 0- 0 at 20884; Skipped

info : Found block with too small length at 104116; Skipped

info : Wrong bytesec: 0- 0- 0 at 27264; Skipped

info : Wrong bytesec: 0- 0- 0 at 28208; Skipped

info : Wrong bytesec: 0- 0- 0 at 27980; Skipped

info : Wrong block with wrong total length starting at 108504

info : Found block with too small length at 109952; Skipped

info : Wrong block with wrong total length starting at 112812

info : Wrong bytesec: 0- 0- 0 at 21132; Skipped

info : Wrong block with wrong total length starting at 114852

info : Wrong bytesec: 46- 49- 48 at 28012; Skipped

info : Found block with too small length at 117068; Skipped

info : Wrong block with wrong total length starting at 117292

info : Wrong bytesec: 0- 0- 0 at 9320; Skipped

info : Wrong bytesec: 49- 46- 49 at 28360; Skipped

info : Wrong block with wrong total length starting at 120876

info : Wrong block with wrong total length starting at 121468

info : Wrong bytesec: 46- 49- 46 at 28304; Skipped

info : Wrong block with wrong total length starting at 124488

info : Wrong block with wrong total length starting at 125820

warning : Number of rows changed from 652 to 624

status : OK

再次查看日志:

[email?protected] bin]# tail -f /var/log/mysqld.log

2018-03-02 16:01:53 1824 [Note] InnoDB: Waiting for purge to start

2018-03-02 16:01:53 1824 [Note] InnoDB: 5.6.37 started; log sequence number 1498263109644

2018-03-02 16:01:53 1824 [Note] Server hostname (bind-address): ‘*‘; port: 3306

2018-03-02 16:01:53 1824 [Note] IPv6 is available.

2018-03-02 16:01:53 1824 [Note] - ‘::‘ resolves to ‘::‘;

2018-03-02 16:01:53 1824 [Note] Server socket created on IP: ‘::‘.

2018-03-02 16:01:53 1824 [Note] Event Scheduler: Loaded 0 events

2018-03-02 16:01:53 1824 [Note] /usr/sbin/mysqld: ready for connections.

Version: ‘5.6.37‘ socket: ‘/var/lib/mysql/mysql.sock‘ port: 3306 MySQL Community Server (GPL)

2018-03-02 16:01:54 1824 [Warning] IP address ‘172.20.66.26‘ could not be resolved: Name or service not known

錯誤得到解決了。

原文:http://blog.51cto.com/liqingbiao/2079873

總結(jié)

以上是生活随笔為你收集整理的cactiez mysql_cactiez使用mysql数据库出现以下报错:“[ERROR] /usr/sbin/mysqld”的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。