Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

26 total results found

pt-table-sync

MySQL Tools

Usage Print Diff pt-table-sync \ --print \ --chunk-size=1000 \ h=master_host,P=3306,u=root,p=123456,D=mydb,t=mytable \ h=slave_host,P=3306,u=root,p=123456 Execute Diff pt-table-sync \ --execute \ --chunk-size=1000 \ h=master_host,P=3306,u=root,...

pt-table
mysql
database

Localhost/127/UnixSocket

MySQL Troubleshooting

question这是 MySQL 客户端的默认行为!当你在配置文件中指定 host=localhost 时,MySQL 客户端会自动尝试使用 Unix socket 连接,但如果 Unix socket 不可用或连接失败,它就会回退到 TCP 连接,并将 localhost 解析为 127.0.0.1。

troubleshooting
mysql
database

Commands

Opensearch

Check Health curl http://172.17.0.2:9200/_cluster/health?pretty Set Replicas Num curl -X PUT "http://172.17.0.2:9200/_all/_settings" \ -H "Content-Type: application/json" \ -d '{ "number_of_replicas": 0 }' Enabled Performance...

commands
opensearch
database

Recovery Mode

PostgreSQL Troubleshooting

Error the database system is in recovery mode Sit Env Host: 192.168.80.9 psql -h apple-pgsql.db.example.com -p 5433 -U postgres Trouble Shooting Most likely the disk ran out of space. Check postgres logs. Check recovery state. SELECT pg_is_in_recovery...

recovery
postgresql
database

Common SQL

PostgreSQL Manual

Connect psql psql -U xxx -d postgres psql -U xxx -d postgres -p List Databases \l List Tables \dt Select Database \c xxx Create Database CREATE DATABASE foo WITH OWNER = kuga ENCODING = 'UTF8' LC_COLLATE = 'C' LC_CTYPE = 'C' TEMPLATE = t...

sql
postgresql
database

Commands

MySQL Quick Start

Config Path mysql --help | grep -B 1 etc/my.cnf Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf /opt/homebrew/etc/my.cnf ~/.my.cnf mysqldump With DB Creation User --databases mysqldump -hlocalhost -uroot -...

database
commands
mysqldump
mysql