{"id":1541,"date":"2015-11-16T01:07:10","date_gmt":"2015-11-15T16:07:10","guid":{"rendered":"http:\/\/nsb.homeip.net\/wp\/?p=1541"},"modified":"2016-03-31T18:41:31","modified_gmt":"2016-03-31T09:41:31","slug":"zabbix%e3%81%8cmysql%e3%81%ae%e3%81%9b%e3%81%84%e3%81%a7%e3%82%a8%e3%83%a9%e3%83%bc%e3%82%92%e5%90%90%e3%81%84%e3%81%a6%e8%b5%b7%e5%8b%95%e3%81%97%e3%81%aa%e3%81%8f%e3%81%aa%e3%81%a3%e3%81%9f%e3%81%ae","status":"publish","type":"post","link":"https:\/\/nsb.homeip.net\/wp\/?p=1541","title":{"rendered":"zabbix\u304cmysql\u306e\u305b\u3044\u3067\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u305f\u306e\u3067\u305d\u306e\u5fa9\u65e7\u30e1\u30e2"},"content":{"rendered":"<p>zabbix\u304c\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u3001\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u305f\u3002<br \/>\nZabbix\u306bWeb\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3044\u308b\u3002<br \/>\n\u3069\u3046\u3084\u3089\u3001mysqld\u304c\u6b62\u307e\u3063\u3066\u3044\u308b\u6a21\u69d8<\/p>\n<p>Dtabase error connectiong to database [Can&#8217;t connect to local MySQL server though &#8216;var\/lib\/mysql\/mysql.sock'(2)]<\/p>\n<p><a href=\"https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/add4742aa47f9ecb1fdf9df7ecdc42f8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1542\" src=\"https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/add4742aa47f9ecb1fdf9df7ecdc42f8.png\" alt=\"zabbix_\u969c\u5bb3\u767a\u751f\" width=\"709\" height=\"357\" srcset=\"https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/add4742aa47f9ecb1fdf9df7ecdc42f8.png 709w, https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/add4742aa47f9ecb1fdf9df7ecdc42f8-300x151.png 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/a><br \/>\n\/etc\/init.d\/mysqld status \u3067\u78ba\u8a8d\u3059\u308b\u3068<br \/>\nmysqld\u306f\u505c\u6b62\u3057\u3066\u3044\u307e\u3059\u304c\u30b5\u30d6\u30b7\u30c6\u30e0\u304c\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u307e\u3059<br \/>\n\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u30fb\u30fb\u30fb\u30fb<\/p>\n<p>\u3069\u3046\u3084\u3089mysqld\u304c\u6b63\u5e38\u306a\u624b\u9806\u3067\u306f\u306a\u304f\u3001\u7570\u5e38\u7d42\u4e86\u3057\u3066\u3057\u307e\u3063\u305f\u72b6\u614b\u306e\u3088\u3046\u3060\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u81ea\u8eab\u3092\u518d\u8d77\u52d5\u3057\u3066\u3082\u3060\u3081\u306a\u306e\u3067\u3001\u3082\u3046\u5c11\u3057\u3057\u4e26\u3079\u3066\u898b\u308b\u3068\u3001<br \/>\nMysql\u306e\u30ed\u30b0\u306b\u3001\u3044\u3084\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u30fb\u30fb\u30fb\u30fb<\/p>\n<p>tail -30 \/var\/log\/mysqld.log<\/p>\n<pre class=\"\">InnoDB: Page number (if stored to page already) 40416,\r\nInnoDB: space id (if created with &gt;= MySQL-4.1.1 and stored already) 0\r\nInnoDB: Page may be an index page where index id is 0 440\r\nInnoDB: (index \"history_uint_1\" of table \"zabbix\".\"history_uint\")\r\nInnoDB: Database page corruption on disk or a failed\r\nInnoDB: file read of page 40416.\r\nInnoDB: You may have to recover from a backup.\r\nInnoDB: It is also possible that your operating\r\nInnoDB: system has corrupted its own file cache\r\nInnoDB: and rebooting your computer removes the\r\nInnoDB: error.\r\nInnoDB: If the corrupt page is an index page\r\nInnoDB: you can also try to fix the corruption\r\nInnoDB: by dumping, dropping, and reimporting\r\nInnoDB: the corrupt table. You can use CHECK\r\nInnoDB: TABLE to scan your table for corruption.\r\nInnoDB: See also http:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/forcing-innodb-recovery.html\r\nInnoDB: about forcing recovery.\r\nInnoDB: Ending processing because of a corrupt database page.<\/pre>\n<p>\u3069\u3046\u3084\u3089\u30c6\u30fc\u30d6\u30eb\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u58ca\u308c\u3066\u3044\u308b\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u767a\u898b\u3002<\/p>\n<p>\u3067\u3082\u3082\u3046\u5c11\u3057\u3042\u304c\u3044\u3066\u307f\u308b\u3002<br \/>\n\/etc\/my.cnf\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u884c\u3092[mysqld]\u306b\u8ffd\u52a0\uff08\u30ea\u30ab\u30d0\u30ea\u30e2\u30fc\u30c9\u3067\u306e\u8d77\u52d5\u3092\u6307\u793a\uff09<br \/>\ninnodb_force_recovery = 1<\/p>\n<p>\u3067\u3001reboot\u30b3\u30de\u30f3\u30c9\u3067\u518d\u8d77\u52d5\u3057\u3066\u307f\u305f\u3002<br \/>\nreboot<\/p>\n<p>db\u304c\u8d77\u52d5\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d<br \/>\n\/etc\/init.d\/mysqld status<\/p>\n<pre class=\"\">[root@zabbix2 ~]# \/etc\/init.d\/mysqld status\r\nmysqld (pid 1433) \u3092\u5b9f\u884c\u4e2d...<\/pre>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001Mysql\u306e\u8d77\u52d5\u306f\u3057\u3066\u3044\u308b\u6a21\u69d8\u3002<\/p>\n<p>\u3053\u306e\u72b6\u614b\u3067Zabbix\u306bWeb\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001<br \/>\n\u3068\u308a\u3042\u3048\u305a\u8d77\u52d5\u306f\u3059\u308b\u304c\u3001\u3042\u3061\u3053\u3061\u306bUpdate\u306b\u5931\u6557\u3057\u305f\u65e8\u304c\u3055\u308c\u3066\u3044\u308b\u30fb\u30fb\u30fb\u30fb<\/p>\n<p>\u305f\u3076\u3093\u30ea\u30ab\u30d0\u30ea\u30e2\u30fc\u30c9\u3067\u8d77\u52d5\u3057\u3066\u3044\u308b\u306e\u3067\u3001Database\u304cReadOnly\u30e2\u30fc\u30c9\u306b\u306a\u3063\u3066\u3044\u308b\u305b\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/bd891efa72852c48f890ff1ca7d2056d.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1543\" src=\"https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/bd891efa72852c48f890ff1ca7d2056d.png\" alt=\"zabbix_\u66ab\u5b9a\u5fa9\u65e7\" width=\"1241\" height=\"993\" srcset=\"https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/bd891efa72852c48f890ff1ca7d2056d.png 1241w, https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/bd891efa72852c48f890ff1ca7d2056d-300x240.png 300w, https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/bd891efa72852c48f890ff1ca7d2056d-1024x819.png 1024w\" sizes=\"auto, (max-width: 1241px) 100vw, 1241px\" \/><\/a><\/p>\n<p>\u3053\u306e\u72b6\u614b\u3067DB\u5168\u4f53\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u308b<br \/>\nmysqlcheck -c zabbix -u zabbix -p<\/p>\n<pre class=\"\">[root@zabbix2 ~]# mysqlcheck -c zabbix -u zabbix -p\r\nEnter password:\r\nzabbix.acknowledges OK\r\nzabbix.actions OK\r\nzabbix.alerts OK\r\nzabbix.application_template OK\r\nzabbix.applications OK\r\nzabbix.auditlog OK\r\nzabbix.auditlog_details OK\r\nzabbix.autoreg_host OK\r\nzabbix.conditions OK\r\nzabbix.config OK\r\nzabbix.dbversion OK\r\nzabbix.dchecks OK\r\nzabbix.dhosts OK\r\nzabbix.drules OK\r\nzabbix.dservices OK\r\nzabbix.escalations OK\r\nzabbix.events OK\r\nzabbix.expressions OK\r\nzabbix.functions OK\r\nzabbix.globalmacro OK\r\nzabbix.globalvars OK\r\nzabbix.graph_discovery OK\r\nzabbix.graph_theme OK\r\nzabbix.graphs OK\r\nzabbix.graphs_items OK\r\nzabbix.group_discovery OK\r\nzabbix.group_prototype OK\r\nzabbix.groups OK\r\nzabbix.history OK\r\nzabbix.history_log OK\r\nzabbix.history_str OK\r\nzabbix.history_str_sync OK\r\nzabbix.history_sync OK\r\nzabbix.history_text OK\r\nzabbix.history_uint\r\nerror : Corrupt\r\nzabbix.history_uint_sync OK\r\nzabbix.host_discovery OK\r\nzabbix.host_inventory OK\r\nzabbix.hostmacro OK\r\nzabbix.hosts OK\r\nzabbix.hosts_groups OK\r\nzabbix.hosts_templates OK\r\nzabbix.housekeeper OK\r\nzabbix.httpstep OK\r\nzabbix.httpstepitem OK\r\nzabbix.httptest OK\r\nzabbix.httptestitem OK\r\nzabbix.icon_map OK\r\nzabbix.icon_mapping OK\r\nzabbix.ids OK\r\nzabbix.images OK\r\nzabbix.interface OK\r\nzabbix.interface_discovery OK\r\nzabbix.item_discovery OK\r\nzabbix.items OK\r\nzabbix.items_applications OK\r\nzabbix.maintenances OK\r\nzabbix.maintenances_groups OK\r\nzabbix.maintenances_hosts OK\r\nzabbix.maintenances_windows OK\r\nzabbix.mappings OK\r\nzabbix.media OK\r\nzabbix.media_type OK\r\nzabbix.node_cksum OK\r\nzabbix.nodes OK\r\nzabbix.opcommand OK\r\nzabbix.opcommand_grp OK\r\nzabbix.opcommand_hst OK\r\nzabbix.opconditions OK\r\nzabbix.operations OK\r\nzabbix.opgroup OK\r\nzabbix.opmessage OK\r\nzabbix.opmessage_grp OK\r\nzabbix.opmessage_usr OK\r\nzabbix.optemplate OK\r\nzabbix.profiles OK\r\nzabbix.proxy_autoreg_host OK\r\nzabbix.proxy_dhistory OK\r\nzabbix.proxy_history OK\r\nzabbix.regexps OK\r\nzabbix.rights OK\r\nzabbix.screens OK\r\nzabbix.screens_items OK\r\nzabbix.scripts OK\r\nzabbix.service_alarms OK\r\nzabbix.services OK\r\nzabbix.services_links OK\r\nzabbix.services_times OK\r\nzabbix.sessions OK\r\nzabbix.slides OK\r\nzabbix.slideshows OK\r\nzabbix.sysmap_element_url OK\r\nzabbix.sysmap_url OK\r\nzabbix.sysmaps OK\r\nzabbix.sysmaps_elements OK\r\nzabbix.sysmaps_link_triggers OK\r\nzabbix.sysmaps_links OK\r\nzabbix.timeperiods OK\r\nzabbix.trends OK\r\nzabbix.trends_uint OK\r\nzabbix.trigger_depends OK\r\nzabbix.trigger_discovery OK\r\nzabbix.triggers OK\r\nzabbix.user_history OK\r\nzabbix.users OK\r\nzabbix.users_groups OK\r\nzabbix.usrgrp OK\r\nzabbix.valuemaps OK<\/pre>\n<p class=\"\">\u3084\u306f\u308azabbix.history_uint\u304c\u58ca\u308c\u3066\u3044\u308b\u3068\u51fa\u3066\u3044\u308b\u3002<\/p>\n<p>\u4e00\u5fdc\u3001\u4fee\u5fa9\u3057\u3088\u3046\u3068\u3057\u3066\u898b\u307e\u3057\u305f\u304c<br \/>\nmysqlcheck -r zabbix history_uint -u zabbix -p<\/p>\n<pre class=\"\">[root@zabbix2 ~]# mysqlcheck -r zabbix history_uint -u zabbix -p\r\nEnter password:\r\nzabbix.history_uint\r\nnote : The storage engine for the table doesn't support repair\r\n[root@zabbix2 ~]#<\/pre>\n<p class=\"\">InnoDB\u306a\u306e\u3067\u3067\u304d\u306a\u3044\u307f\u305f\u3044\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001mysql\u30b3\u30de\u30f3\u30c9\u304b\u3089\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u66f4\u306a\u308b\u8abf\u67fb\u3092\u5b9f\u65bd<br \/>\n\u307e\u305a\u306f\u3001mysql\u30b3\u30de\u30f3\u30c9\u3092\u8d77\u52d5<br \/>\nmysql -u zabbix -D zabbix -p<\/p>\n<pre class=\"\">[root@zabbix2 ~]# mysql -u zabbix -D zabbix -p\r\nEnter password:\r\nReading table information for completion of table and column names\r\nYou can turn off this feature to get a quicker startup with -A\r\n\r\nWelcome to the MySQL monitor. Commands end with ; or \\g.\r\nYour MySQL connection id is 16885\r\nServer version: 5.1.67 Source distribution\r\n\r\nCopyright (c) 2000, 2012, Oracle and\/or its affiliates. All rights reserved.\r\n\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.<\/pre>\n<p>\u30c6\u30fc\u30d6\u30eb\u306e\u72b6\u614b\u3092\u518d\u5ea6\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068<br \/>\ncheck table history_uint;<\/p>\n<pre class=\"\">mysql&gt; check table history_uint;\r\n+---------------------+-------+----------+----------+\r\n| Table | Op | Msg_type | Msg_text |\r\n+---------------------+-------+----------+----------+\r\n| zabbix.history_uint | check | error | Corrupt |\r\n+---------------------+-------+----------+----------+\r\n1 row in set (3 hours 7 min 17.94 sec)\r\n\r\nmysql&gt;<\/pre>\n<p>\u72b6\u6cc1\u306f\u3044\u3063\u3057\u3087\u3067\u3059\u306d\u3002<\/p>\n<p>\u3064\u3044\u3067\u306b\u8a72\u5f53\u30c6\u30fc\u30d6\u30eb\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u3066\u898b\u307e\u3059\u3002<br \/>\nshow index from history_uint;<\/p>\n<pre class=\"\">mysql&gt; show index from history_uint;\r\n+--------------+------------+----------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+\r\n| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |\r\n+--------------+------------+----------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+\r\n| history_uint | 1 | history_uint_1 | 1 | itemid | A | 18 | NULL | NULL | | BTREE | |\r\n| history_uint | 1 | history_uint_1 | 2 | clock | A | 151210951 | NULL | NULL | | BTREE | |\r\n+--------------+------------+----------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+\r\n2 rows in set (1.35 sec)<\/pre>\n<p>\u3053\u3053\u304b\u3089\u5fa9\u65e7\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306f\u8a72\u5f53\u30c6\u30fc\u30d6\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>\u5358\u7d14\u306b\u51fa\u529b\u3057\u3066\u3082\u3088\u3044\u306e\u3060\u3051\u3069\u3082\u3001\u30c0\u30f3\u30d7\u30d5\u30a1\u30a4\u30eb\u304c\u5de8\u5927\u306b\u306a\u308a\u3059\u304e\u308b\u306e\u3067\u5727\u7e2e\u3057\u3066\u51fa\u529b\u3055\u305b\u307e\u3059\u3002<br \/>\nmysqldump zabbix history_uint | gzip &gt; history_uint_bk.sql.gz<\/p>\n<pre class=\"\">[root@zabbix2 ~]# mysqldump zabbix history_uint | gzip &gt; history_uint_bk.sql.gz\r\n[root@zabbix2 ~]# ls -al history*\r\n\u5408\u8a08 1638736\r\n-rw-r--r-- 1 root root 1646218128 11\u6708 15 18:33 2015 history_uint_bk.sql.gz\r\n[root@zabbix2 ~]#<\/pre>\n<p>\u30c0\u30f3\u30d7\u51fa\u529b\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u58ca\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u524a\u9664\u3057\u307e\u3059\u3002<br \/>\ndrop table history_uint;<\/p>\n<pre class=\"\">[root@zabbix2 ~]# mysql -u zabbix -D zabbix -p\r\nEnter password:\r\nReading table information for completion of table and column names\r\nYou can turn off this feature to get a quicker startup with -A\r\n\r\nWelcome to the MySQL monitor. Commands end with ; or \\g.\r\nYour MySQL connection id is 34325\r\nServer version: 5.1.67 Source distribution\r\n\r\nCopyright (c) 2000, 2012, Oracle and\/or its affiliates. All rights reserved.\r\n\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nmysql&gt; drop table history_uint;\r\nQuery OK, 0 rows affected (1.26 sec)\r\n\r\nmysql&gt; quit\r\nBye<\/pre>\n<p>\u30ea\u30ab\u30d0\u30ea\u30e2\u30fc\u30c9\u304b\u3089\u901a\u5e38\u30e2\u30fc\u30c9\u3067\u5fa9\u5e30\u3055\u305b\u3066mysqld\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>vi \/etc\/my.cnf<br \/>\n\u3067\u4ee5\u4e0b\u3092\u5909\u66f4\uff08\u30b3\u30e1\u30f3\u30c8\u5316\uff09<br \/>\n#innodb_force_recovery=1<\/p>\n<pre class=\"\">[root@zabbix2 ~]# service mysqld stop\r\nmysqld \u3092\u505c\u6b62\u4e2d: [ OK ]\r\n[root@zabbix2 ~]# service mysqld start\r\nmysqld \u3092\u8d77\u52d5\u4e2d: [ OK ]<\/pre>\n<p>\u6b63\u5e38\u306b\u8d77\u52d5\u3057\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3089\u3001\u5148\u307b\u3069\u53d6\u3063\u305f\u30c0\u30f3\u30d7\u304b\u3089\u30ea\u30b9\u30c8\u30a2\u3057\u307e\u3059\u3002<br \/>\nzcat history_uint_bk.sql.gz | mysql -u zabbix -D zabbix -p<\/p>\n<pre class=\"\">[root@zabbix2 ~]# zcat history_uint_bk.sql.gz | mysql -u zabbix -D zabbix -p\r\nEnter password:\r\n[root@zabbix2 ~]#<\/pre>\n<p>\u30ea\u30b9\u30c8\u30a2\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u58ca\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u304c\u6b63\u5e38\u306b\u623b\u3063\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\nselect count(*) from history_uint;<br \/>\nshow index from history_uint;<\/p>\n<pre class=\"\">[root@zabbix2 ~]# mysql -u zabbix -D zabbix -p\r\nEnter password:\r\nReading table information for completion of table and column names\r\nYou can turn off this feature to get a quicker startup with -A\r\n\r\nWelcome to the MySQL monitor. Commands end with ; or \\g.\r\nYour MySQL connection id is 2585\r\nServer version: 5.1.67 Source distribution\r\n\r\nCopyright (c) 2000, 2012, Oracle and\/or its affiliates. All rights reserved.\r\n\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nmysql&gt; select count(*) from history_uint;\r\n+-----------+\r\n| count(*) |\r\n+-----------+\r\n| 147589069 |\r\n+-----------+\r\n1 row in set (7 min 51.62 sec)\r\n\r\nmysql&gt; show index from history_uint;\r\n+--------------+------------+----------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+\r\n| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |\r\n+--------------+------------+----------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+\r\n| history_uint | 1 | history_uint_1 | 1 | itemid | A | 18 | NULL | NULL | | BTREE | |\r\n| history_uint | 1 | history_uint_1 | 2 | clock | A | 147589525 | NULL | NULL | | BTREE | |\r\n+--------------+------------+----------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+\r\n2 rows in set (0.23 sec)\r\n\r\nmysql&gt;<\/pre>\n<p>\u3061\u3083\u3093\u3068\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3082\u623b\u3063\u3066\u3044\u307e\u3059\u306d<br \/>\n\u30b5\u30fc\u30d0\u3092\u518d\u8d77\u52d5\u3057\u3066\u3001Zabbix\u304c\u4f7f\u7528\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/16619b944d55cef81c8dd7f7e9593bed.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1544\" src=\"https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/16619b944d55cef81c8dd7f7e9593bed.png\" alt=\"zabbix_\u5fa9\u65e7\u5b8c\u4e86\" width=\"1241\" height=\"988\" srcset=\"https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/16619b944d55cef81c8dd7f7e9593bed.png 1241w, https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/16619b944d55cef81c8dd7f7e9593bed-300x239.png 300w, https:\/\/nsb.homeip.net\/wp\/wp-content\/uploads\/2015\/11\/16619b944d55cef81c8dd7f7e9593bed-1024x815.png 1024w\" sizes=\"auto, (max-width: 1241px) 100vw, 1241px\" \/><\/a><br \/>\n\u3061\u3083\u3093\u3068\u8d77\u52d5\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u308c\u3067\u306a\u3093\u3068\u304b\u4fee\u5fa9\u3067\u304d\u307e\u3057\u305f\u304c\u3001\u306a\u305c\u58ca\u308c\u305f\u306e\u304b\u306f\u8b0e\u3002<br \/>\n\u53d6\u308a\u5408\u3048\u305a\u3001\u3082\u3046\u5c11\u3057mysqld\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u304c\u5fc5\u8981\u306a\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305aZabbix\u4eee\u60f3\u30de\u30b7\u30f3\u306e\u5272\u308a\u5f53\u3066\u30e1\u30e2\u30ea\u3092512MB\u304b\u30891GB\u306b\u5897\u3084\u3057\u3066\u3001innodb_buffer_pool_size\u3092128MB -&gt; 256MB\u306b\u5909\u66f4\u3057\u3066\u69d8\u5b50\u898b\u4e2d\u3002<\/p>\n<p>\/etc\/my.cnf<\/p>\n<pre class=\"\">[mysqld]\r\ndatadir=\/var\/lib\/mysql\r\nsocket=\/var\/lib\/mysql\/mysql.sock\r\nuser=mysql\r\n# Disabling symbolic-links is recommended to prevent assorted security risks\r\nsymbolic-links=0\r\ncharacter-set-server=utf8\r\ninnodb_buffer_pool_size=256M\r\ninnodb_log_file_size=32M\r\ninnodb_log_files_in_group=2\r\ninnodb_flush_method=O_DIRECT\r\n#innodb_force_recovery=1<\/pre>\n<p>Zabbix\u30b5\u30fc\u30d0\u306e\u30e1\u30e2\u30ea\u30922GB\u3068\u304b4GB\u3050\u3089\u3044\u5272\u308a\u5f53\u3066\u308b\u3093\u3060\u3063\u305f\u3089\u3001\u3053\u3093\u306a\u8a2d\u5b9a\u4f8b\u307f\u3064\u3051\u305f\u306e\u3067\u6545\u5b9f\u53c2\u8003\u306b\u3057\u307e\u3059\u3002<br \/>\nhttp:\/\/www.zabbix.jp\/node\/72<br \/>\nhttp:\/\/kometchtech.blog.fc2.com\/blog-entry-1290.html<\/p>\n<p>&nbsp;<\/p>\n<p>\u4eca\u56de\u306e\u53c2\u8003URL<\/p>\n<p>http:\/\/dev.mysql.com\/doc\/refman\/5.1\/en\/forcing-innodb-recovery.html<br \/>\nhttp:\/\/cimacoppi.exblog.jp\/13146947<br \/>\n<iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" title=\"mysql\u3067index\u518d\u69cb\u7bc9 - \u3046\u307e\u3044\u307c\u3046\u3076\u308d\u3050\" src=\"https:\/\/hatenablog-parts.com\/embed?url=http%3A%2F%2Fhogem.hatenablog.com%2Fentry%2F20100106%2F1262780069#?secret=QjxKYIVTbc\" data-secret=\"QjxKYIVTbc\" scrolling=\"no\" frameborder=\"0\"><\/iframe><br \/>\nhttp:\/\/qiita.com\/pugiemonn\/items\/8a6b322654aa65e2966b<br \/>\n<iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" title=\"MySQL\u306eIndex\u306e\u72b6\u6cc1\u3092\u89b3\u5bdf\u3057\u3066\u3001\u52b9\u679c\u7684\u306aINDEX\u3092\u8003\u3048\u305f\u3044 - \u305d\u308c\u30de\u30b0\u3067\uff01\" src=\"https:\/\/hatenablog-parts.com\/embed?url=http%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F20110802%2F1313061693#?secret=9vBWejv8qp\" data-secret=\"9vBWejv8qp\" scrolling=\"no\" frameborder=\"0\"><\/iframe><br \/>\nhttp:\/\/www.dbonline.jp\/mysql\/table\/index10.html<br \/>\nhttp:\/\/d.hatena.ne.jp\/jitsu102\/20120106\/1325799325<br \/>\nhttp:\/\/mysql.javarou.com\/dat\/000389.html<br \/>\nhttp:\/\/www.ah-2.com\/2014\/06\/12\/mysq_innodb_database_page_corruption.html<br \/>\nhttp:\/\/kb.odin.com\/jp\/6586<br \/>\nhttps:\/\/dev.mysql.com\/doc\/refman\/5.6\/ja\/rebuilding-tables.html<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"iTYJEBTz0B\"><p><a href=\"https:\/\/macperson.net\/mysql-table-repair\/\">MySQL \u306e\u58ca\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;MySQL \u306e\u58ca\u308c\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9&#8221; &#8212; Mac person\" src=\"https:\/\/macperson.net\/mysql-table-repair\/embed\/#?secret=YlPsBGCzEL#?secret=iTYJEBTz0B\" data-secret=\"iTYJEBTz0B\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><br \/>\nhttp:\/\/www.dbonline.jp\/mysql\/table\/index4.html<br \/>\nhttp:\/\/qiita.com\/sue738\/items\/5c8ca15d5d91088e32bf<br \/>\nhttp:\/\/blog.layer8.sh\/ja\/2011\/12\/23\/mysql%E3%82%92%E9%AB%98%E9%80%9F%E5%8C%96%E3%81%97%E3%81%9F%E3%81%84%E3%81%A8%E3%81%8D%E3%81%AE%E3%83%81%E3%83%A5%E3%83%BC%E3%83%8B%E3%83%B3%E3%82%B0\/<br \/>\nhttp:\/\/www.zabbix.jp\/node\/72<br \/>\nhttp:\/\/kometchtech.blog.fc2.com\/blog-entry-1290.html<\/p>\n<p>Zabbix\u306e\u84c4\u7a4d\u7cfb\u30c7\u30fc\u30bf\u3092\u521d\u671f\u5316\u3059\u308bhttp:\/\/qiita.com\/rui5885\/items\/e9bd3eefa625a288bb48<\/p>\n<p>\u5168\u30c7\u30fc\u30bf\u3092\u524a\u9664\u3059\u308b<br \/>\nhttp:\/\/mysql.deikou.com\/pages\/000067.html<\/p>\n<p>http:\/\/phpspot.net\/php\/pgmysqldump%E3%81%A7%E3%83%90%E3%83%83%E3%82%AF%E3%82%A2%E3%83%83%E3%83%97%EF%BC%86%E5%BE%A9%E5%85%83.html<\/p>\n<p>http:\/\/www.risewill.co.jp\/blog\/archives\/1111<\/p>\n<p>&nbsp;<\/p>\n<p>Views: 72<\/p>","protected":false},"excerpt":{"rendered":"<p>zabbix\u304c\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u3001\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u305f\u3002 Zabbix\u306bWeb\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3044\u308b\u3002 \u3069\u3046\u3084\u3089\u3001mysqld\u304c\u6b62\u307e\u3063\u3066\u3044\u308b\u6a21\u69d8 Dtabase error connectiong to &hellip; <a href=\"https:\/\/nsb.homeip.net\/wp\/?p=1541\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,11],"tags":[],"class_list":["post-1541","post","type-post","status-publish","format-standard","hentry","category-linux","category-zabbix"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1541"}],"version-history":[{"count":6,"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1541\/revisions"}],"predecessor-version":[{"id":1630,"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1541\/revisions\/1630"}],"wp:attachment":[{"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nsb.homeip.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}