Advanced Search
Search Results
26 total results found
pt-table-sync
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,...
Localhost/127/UnixSocket
question这是 MySQL 客户端的默认行为!当你在配置文件中指定 host=localhost 时,MySQL 客户端会自动尝试使用 Unix socket 连接,但如果 Unix socket 不可用或连接失败,它就会回退到 TCP 连接,并将 localhost 解析为 127.0.0.1。
Commands
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...
Recovery Mode
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...
Common SQL
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...
Commands
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 -...