原创 MySQL不能啓動 FTS optimize thread exiting

初始化一套MySQL但拉起不來,日誌如下: [Note] InnoDB: The InnoDB memory heap is disabled [Note] InnoDB: Mutexes and rw_locks use

原创 OneProxy高可用

進程級高可用 /oneproxy/conf/proxy.conf 中增加如下配置 [oneproxy] keepalive = 1 ps -ef|grep oneproxy root 25927

原创 not authorized on local to execute command

線上MongoDB 監控項不能出圖,檢查後發現是權限有問題。 SECONDARY> db.printReplicationInfo() 2017-08-21T14:46:55.587+0800 E QUERY [threa

原创 OneProxy6.1.3 讀寫分離配置

oneproxy基於一主一從的MySQL 讀寫分離配置步驟 環境準備: a. 搭建好MySQL 主從複製環境 b. 下載並安裝好oneproxy,並能正常啓動 oneproxy讀寫分離配置 1.MySQL Master上建立

原创 Percona Server is not running with jemalloc

Server version:  5.7.20-18-log Percona Server (GPL), Release 18, Revision 7ce54a6deef 安裝tokudb引擎遇到如下錯誤: ps-admin  --ena

原创 Logstash API Monitor

Logstash 5.0 開始,提供了輸出自身進程的指標和狀態監控的 API。 官方文檔: https://www.elastic.co/guide/en/logstash/current/monitoring-logstash

原创 failed executing transaction 'ANONYMOUS' at master

測試MySQL5.6 到MySQL5.7跨版本的多源複製功能,MySQL5.6中(Master)更新mysql.user表時,遇到如下錯誤: Master1: mysql> delete from mysql.user wher

原创 Failed to execute mysql_file_stat on file

Version: MySQL 5.6.19 現象:mysql錯誤日誌告警: [Note] Failed to execute mysql_file_stat on file ‘./mysql-bin.024316’ 原因:pu

原创 stop slave IO_THREAD | SQL_THREAD 不生效

mysql> select @@version; +————+ | @@version | +————+ | 5.6.24-log | +————+ 1 row in set (0.00 sec) 模擬slave故障

原创 MySQL邏輯備份單表恢復

假設要從一個MySQL整庫的邏輯備份中恢復其中的一張表,如何做到快速恢復呢? 下面通過巧妙利用授權的方式,快速從邏輯備份中恢復想要的表。 一. 數據庫備份mysqldump -ubackup -ppassword -S /data/

原创 Coordinator stopped because there were error(s) in the worker(s).

MySQL5.7  多源複製其中的一個chaannel 報錯如下: mysql> select * from performance_schema.replication_applier_status_by_worker where  

原创 mysqld_safe Can't log to error log and syslog at the same time.

由於安全審計需要,要將mysql的error log 記錄到syslog中。 mysqld_safe –verbose –help|grep syslog –syslog Log

原创 ERROR 1062 (23000): Duplicate entry '5' for key 'PRIMARY'

現象: MySQL 主從切換後,新的master上寫入數據報主鍵衝突.錯誤如下: ERROR 1062 (23000): Duplicate entry '5' for key 'PRIMARY' 原因: 主從切換後只有一張表有問題,其

原创 Can't execute the query because you have a conflicting read lock

mysql> create table t (id int(10) ); ERROR 1223 (HY000): Can't execute the query because you have a conflicting read lo

原创 5.6.24-72.2-log Percona Server 主從延遲

問題描述: 一套監控的zabbix從庫總是出現瞬間短暫的秒級延遲。 主從庫版本都是Percona Server 5.6.24 ,軟硬件配置基本相同。 從監控上看,硬件資源(cpu,內存,IO,網絡)都沒壓力,而且有富餘。