Percona-Tookit工具包之pt-mysql-summary

来源:https://www.cnblogs.com/aaron8219/archive/2018/08/11/9461820.html
-Advertisement-
Play Games

占座 ...


  Preface       Sometimes we need to collect information of  MySQL server as a report when we first time take over the system by someone else.Espcially there're lots of  servers for you to check them one by one with manual command.We need a simple tool to increase the efficiency when doing so.   Introduce       pt-mysql-summary can help us to print information of our MySQL servers nicely.It's not a tuning or diagnostic tool but a tool just provides us a report with neat format.
  Procedure   Usage
1 pt-mysql-summary [OPTIONS]

 

Common Parameters

1 --all-databases //Specify the scope is all databases for summarizing.
2 --databases //Specify the only database for summarizing.
3 --default-files //Specify the configuration file to use.
4 --list-encrypted-tables //Specify to contain encrypted tables in all databases.
5 --read-samples //Create a report from this file you sepcified.
6 --save-samples //Save to the direcotry you want to store the summary.
7 --sleep //Seconds to sleep for counter.

 

Example   Execute pt-mysql-summary with just connect options(single master).
  1 [root@zlm1 08:57:10 ~]
  2 #pt-mysql-summary --user=root --password=Passw0rd --host=localhost
  3 mysql: [Warning] Using a password on the command line interface can be insecure.
  4 # Percona Toolkit MySQL Summary Report #######################
  5               System time | 2018-08-12 06:57:37 UTC (local TZ: CEST +0200)
  6 # Instances ##################################################
  7   Port  Data Directory             Nice OOM Socket
  8   ===== ========================== ==== === ======
  9 # MySQL Executable ###########################################
 10 # Slave Hosts ################################################
 11 No slaves found //The slave server is not started up yet.
 12 # Report On Port 3306 ######################################## //Summary of overall of MySQL server.
 13                      User | root@localhost
 14                      Time | 2018-08-12 08:57:37 (CEST)
 15                  Hostname | zlm1
 16                   Version | 5.7.21-log MySQL Community Server (GPL)
 17                  Built On | linux-glibc2.12 x86_64
 18                   Started | 2018-08-12 08:57 (up 0+00:00:37)
 19                 Databases | 7
 20                   Datadir | /data/mysql/mysql3306/data/
 21                 Processes | 2 connected, 1 running
 22               Replication | Is not a slave, has 0 slaves connected
 23                   Pidfile | mysql.pid (does not exist)
 24 # Processlist ################################################ //This is all the contents in processlist.
 25 
 26   Command                        COUNT(*) Working SUM(Time) MAX(Time)
 27   ------------------------------ -------- ------- --------- ---------
 28   Query                                 1       1         0         0
 29   Sleep                                 1       0         1         1
 30 
 31   User                           COUNT(*) Working SUM(Time) MAX(Time)
 32   ------------------------------ -------- ------- --------- ---------
 33   monitor                               1       0         0         0
 34   root                                  1       1         0         0
 35 
 36   Host                           COUNT(*) Working SUM(Time) MAX(Time)
 37   ------------------------------ -------- ------- --------- ---------
 38   localhost                             1       1         0         0
 39   zlm1                                  1       0         0         0
 40 
 41   db                             COUNT(*) Working SUM(Time) MAX(Time)
 42   ------------------------------ -------- ------- --------- ---------
 43   NULL                                  2       1         0         0
 44 
 45   State                          COUNT(*) Working SUM(Time) MAX(Time)
 46   ------------------------------ -------- ------- --------- ---------
 47                                         1       0         0         0
 48   starting                              1       1         0         0
 49 
 50 # Status Counters (Wait 10 Seconds) ########################## //This paragragh shows the global status of MySQL and with 10 secs' differential values.
 51 Variable                                Per day  Per second     10 secs
 52 Bytes_received                          4500000          50         600
 53 Bytes_sent                            100000000        1250        3000
 54 Com_admin_commands                         9000                        
 55 Com_select                                60000                       3
 56 Com_set_option                             2250                        
 57 Com_show_slave_status                     15000                        
 58 Com_show_status                            4500                        
 59 Com_show_variables                         2250                        
 60 Connections                               15000                       1
 61 Created_tmp_files                         12500                        
 62 Created_tmp_tables                         7000                       6
 63 Flush_commands                             2250                        
 64 Handler_commit                            22500                        
 65 Handler_external_lock                    500000           6            
 66 Handler_read_first                        30000                        
 67 Handler_read_key                          25000                        
 68 Handler_read_next                          4500                        
 69 Handler_read_rnd_next                   4000000          50          80
 70 Handler_write                           2000000          25          35
 71 Innodb_buffer_pool_bytes_data       20000000000      225000        3500
 72 Innodb_buffer_pool_pages_flushed          80000                        
 73 Innodb_buffer_pool_read_requests        4000000          45          25
 74 Innodb_buffer_pool_reads                1250000          15            
 75 Innodb_buffer_pool_write_requests        800000           8          25
 76 Innodb_data_fsyncs                        17500                        
 77 Innodb_data_read                    17500000000      225000            
 78 Innodb_data_reads                       1250000          15            
 79 Innodb_data_writes                       125000           1            
 80 Innodb_data_written                  1500000000       17500        7000
 81 Innodb_dblwr_pages_written                 4500                        
 82 Innodb_dblwr_writes                        2250                        
 83 Innodb_log_writes                          4500                        
 84 Innodb_os_log_fsyncs                       9000                        
 85 Innodb_os_log_written                   2500000          30            
 86 Innodb_pages_created                      80000                        
 87 Innodb_pages_read                       1000000          15            
 88 Innodb_pages_written                      80000                        
 89 Innodb_rows_read                          25000                       4
 90 Innodb_num_open_files                     80000                        
 91 Innodb_available_undo_logs               300000           3            
 92 Key_read_requests                         15000                        
 93 Key_reads                                  7000                        
 94 Open_table_definitions                   250000           2            
 95 Opened_files                             350000           3           1
 96 Opened_table_definitions                 250000           2            
 97 Opened_tables                            250000           3            
 98 Queries                                  100000           1           6
 99 Questions                                 90000           1           6
100 Select_scan                               15000                        
101 Table_locks_immediate                    225000           2            
102 Table_open_cache_hits                     12500                        
103 Table_open_cache_misses                  250000           3            
104 Threads_created                            4500                        
105 Uptime                                    90000           1           1
106 # Table cache ################################################
107                      Size | 2048
108                     Usage | 5%
109 # Key Percona Server features ################################ //Because mine is not percona version,so most of the features are not supported.
110       Table & Index Stats | Not Supported
111      Multiple I/O Threads | Enabled
112      Corruption Resilient | Not Supported
113       Durable Replication | Not Supported
114      Import InnoDB Tables | Not Supported
115      Fast Server Restarts | Not Supported
116          Enhanced Logging | Not Supported
117      Replica Perf Logging | Enabled
118       Response Time Hist. | Not Supported
119           Smooth Flushing | Not Supported
120       HandlerSocket NoSQL | Not Supported
121            Fast Hash UDFs | Unknown
122 # Percona XtraDB Cluster ##################################### //If we are using PXC structure,this paragraph will show the detail of it.
123 # Plugins ####################################################
124        InnoDB compression | ACTIVE
125 # Query cache ################################################
126          query_cache_type | OFF
127                      Size | 0.0
128                     Usage | 0%
129          HitToInsertRatio | 0%
130 # Semisynchronous Replication ################################ //Information of semi-replication if there's a master-slave replication.
131                    Master | Disabled
132                     Slave | Disabled
133 # Schema #####################################################
134 Specify --databases or --all-databases to dump and summarize schemas
135 # Noteworthy Technologies ####################################
136                       SSL | No
137      Explicit LOCK TABLES | No
138            Delayed Insert | No
139           XA Transactions | No
140               NDB Cluster | No
141       Prepared Statements | No
142  Prepared statement count | 0
143 # InnoDB #####################################################
144                   Version | 5.7.21
145          Buffer Pool Size | 100.0M
146          Buffer Pool Fill | 8%
147         Buffer Pool Dirty | 0%
148            File Per Table | ON
149                 Page Size | 16k
150             Log File Size | 3 * 100.0M = 300.0M
151           Log Buffer Size | 8M
152              Flush Method | O_DIRECT
153       Flush Log At Commit | 2
154                XA Support | ON
155                 Checksums | ON
156               Doublewrite | ON
157           R/W I/O Threads | 4 4
158              I/O Capacity | 2000
159        Thread Concurrency | 0
160       Concurrency Tickets | 5000
161        Commit Concurrency | 0
162       Txn Isolation Level | READ-COMMITTED
163         Adaptive Flushing | ON
164       Adaptive Checkpoint | 
165            Checkpoint Age | 9
166              InnoDB Queue | 0 queries inside InnoDB, 0 queries in queue
167        Oldest Transaction | 0 Seconds
168          History List Len | 0
169                Read Views | 0
170          Undo Log Entries | 0 transactions, 0 total undo, 0 max undo
171         Pending I/O Reads | 0 buf pool reads, 0 normal AIO, 0 ibuf AIO, 0 preads
172        Pending I/O Writes | 0 buf pool (0 LRU, 0 flush list, 0 page); 0 AIO, 0 sync, 0 log IO (0 log, 0 chkp); 0 pwrites
173       Pending I/O Flushes | 0 buf pool, 0 log
174        Transaction States | 1xnot started
175 # MyISAM #####################################################
176                 Key Cache | 8.0M
177                  Pct Used | 20%
178                 Unflushed | 0%
179 # Security ###################################################
180                     Users | 5 users, 0 anon, 0 w/o pw, 0 old pw
181             Old Passwords | 0
182 # Encryption #################################################
183 mysql: [Warning] Using a password on the command line interface can be insecure.
184 No keyring plugins found
185 # Binary Logging #############################################
186                   Binlogs | 6
187                Zero-Sized | 0
188                Total Size | 190.0k
189             binlog_format | ROW
190          expire_logs_days | 10
191               sync_binlog | 0
192                 server_id | 1003306
193              binlog_do_db | 
194          binlog_ignore_db | 
195 # Noteworthy Variables #######################################
196      Auto-Inc Incr/Offset | 1/1
197    default_storage_engine | InnoDB
198                flush_time | 0
199              init_connect | 
200                 init_file | 
201                  sql_mode | ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
202          join_buffer_size | 128k
203          sort_buffer_size | 128k
204          read_buffer_size | 2M
205      read_rnd_buffer_size | 16M
206        bulk_insert_buffer | 0.00
207       max_heap_table_size | 96M
208            tmp_table_size | 96M
209        max_allowed_packet | 4M
210              thread_stack | 192k
211                       log | 
212                 log_error | ./error.log
213              log_warnings | 2
214          log_slow_queries | 
215 log_queries_not_using_indexes | OFF
216         log_slave_updates | ON
217 # Configuration File #########################################
218               Config File | /etc/my.cnf
219 
220 [mysqld]
221 datadir                             = /var/lib/mysql
222 socket                              = /var/lib/mysql/mysql.sock
223 symbolic-links                      = 0
224 
225 [mysqld_safe]
226 log-error                           = /var/log/mariadb/mariadb.log
227 pid-file                            = /var/run/mariadb/mariadb.pid
228 
229 [mysql]
230 prompt                              = "\\u@\\h:\\p [\\d]\\>"
231 user                                = zlm
232 password                            = zlmzlm
233 host                                = 192.168.56.100
234 
235 [client]
236 user                                = zlm
237 password                            = zlmzlm
238 socket                              = /tmp/mysql3306.sock
239 host                                = 192.168.56.100
240 # Memory management library ##################################
241 jemalloc is not enabled in mysql config for process with id 4159
242 # The End ####################################################
243 
244 [root@zlm1 08:57:48 ~]
245 #

 

Execute it again while slave is working normally with option "--database" and "--save-samples"

  1 [root@zlm1 09:15:24 ~]
  2 #pt-mysql-summary --user=root --password=Passw0rd --host=localhost --databases zlm --save-samples=/root/zlm.rpl
  3 mysql: [Warning] Using a password on the command line interface can be insecure.
  4 # Percona Toolkit MySQL Summary Report #######################
  5               System time | 2018-08-12 07:15:49 UTC (local TZ: CEST +0200)
  6 # Instances ##################################################
  7   Port  Data Directory             Nice OOM Socket
  8   ===== ========================== ==== === ======
  9 # MySQL Executable ###########################################
 10 # Slave Hosts ################################################ //Now,it shows the slave's information.
 11 *************************** 1. row ***************************
 12  Server_id: 1013306
 13       Host: 
 14       Port: 3306
 15  Master_id: 1003306
 16 Slave_UUID: 2b199d1f-94df-11e8-ae46-080027de0e0e
 17 # Report On Port 3306 ########################################
 18                      User | root@localhost
 19                      Time | 2018-08-12 09:15:49 (CEST)
 20                  Hostname | zlm1
 21                   Version | 5.7.21-log MySQL Community Server (GPL)
 22                  Built On | linux-glibc2.12 x86_64
 23                   Started | 2018-08-12 08:57 (up 0+00:18:49)
 24                 Databases | 7
 25                   Datadir | /data/mysql/mysql3306/data/
 26                 Processes | 4 connected, 2 running
 27               Replication | Is not a slave, has 1 slaves connected
 28                   Pidfile | mysql.pid (does not exist)
 29 # Processlist ################################################
 30 
 31   Command                        COUNT(*) Working SUM(Time) MAX(Time)
 32   ------------------------------ -------- ------- --------- ---------
 33   Binlog Dump GTID                      1       1       800       800
 34   Query                                 1       1         0         0
 35   Sleep                                 2       0         7         5
 36 
 37   User                           COUNT(*) Working SUM(Time) MAX(Time)
 38   ------------------------------ -------- ------- --------- ---------
 39   monitor                               2       0         0         0
 40   repl                                  1       1       800       800
 41   root                                  1       1         0         0
 42 
 43   Host                           COUNT(*) Working SUM(Time) MAX(Time)
 44   ------------------------------ -------- ------- --------- ---------
 45   localhost                             1       1         0         0
 46   zlm1                                  2       0         0         0
 47   zlm2                                  1       1       800       800
 48 
 49   db                             COUNT(*) Working SUM(Time) MAX(Time)
 50   ------------------------------ -------- ------- --------- ---------
 51   NULL                                  4       2       800       800
 52 
 53   State                          COUNT(*) Working SUM(Time) MAX(Time)
 54   ------------------------------ -------- ------- --------- ---------
 55                                         2       0         0         0
 56   Master has sent all binlog to         1       1       800       800 //This is the dump thread of master working in replicatoin.
 57   starting                              1       1         0         0
 58 
 59 # Status Counters (Wait 10 Seconds) ##########################
 60 Variable                                Per day  Per second     10 secs
 61 Bytes_received                          4000000          45         700
 62 Bytes_sent                             60000000         700        4000
 63 Com_admin_commands                         9000                        
 64 Com_select                                60000                       3
 65 Com_set_option                             1000                        
 66 Com_show_binlogs                            150                        
 67 Com_show_databases                          150                        
 68 Com_show_engine_status                      150                        
 69 Com_show_master_status                      150                        
 70 Com_show_plugins                            150                        
 71 Com_show_processlist                        150                        
 72 Com_show_slave_hosts                        150                        
 73 Com_show_slave_status                     17500                        
 74 Com_show_status                             600                        
 75 Com_show_storage_engines                    150                        
 76 Com_show_variables                          225                        
 77 Connections                                6000                       1
 78 Created_tmp_disk_tables                    2000                       1
 79 Created_tmp_files                           400                        
 80 Created_tmp_tables                        10000                       8
 81 Flush_commands                               80                        
 82 Handler_commit                              800                        
 83 Handler_external_lock                     20000                       1
 84 Handler_read_first                         1500                        
 85 Handler_read_key                           1250                        
 86 Handler_read_next                           150                       9
 87 Handler_read_rnd_next                    600000           7         300
 88 Handler_write                            300000           3         150
 89 Innodb_buffer_pool_bytes_data         600000000        8000       22500
 90 Innodb_buffer_pool_pages_flushed           4000                       1
 91 Innodb_buffer_pool_read_requests         175000           1          70
 92 Innodb_buffer_pool_reads                  35000                        
 93 Innodb_buffer_pool_write_requests         60000                      60
 94 Innodb_data_fsyncs                          500                        
 95 Innodb_data_read                      600000000        7000            
 96 Innodb_data_reads                         40000                        
 97 Innodb_data_writes                         5000                       1
 98 Innodb_data_written                    70000000         800       30000
 99 Innodb_dblwr_pages_written                  150                        
100 Innodb_dblwr_writes                          80                        
101 Innodb_log_writes                           150                        
102 Innodb_os_log_fsyncs                        300                        
103 Innodb_os_log_written                     80000                        
104 Innodb_pages_created                       3000                       1
105 Innodb_pages_read                         35000                        
106 Innodb_pages_written                       4000                       1
107 Innodb_rows_inserted                      15000                      10
108 Innodb_rows_read                          15000                       9
109 Innodb_num_open_files                      2500                        
110 Innodb_available_undo_logs                10000                        
111 Key_read_requests                           450                        
112 Key_reads                                   225                        
113 Open_table_definitions                     8000                        
114 Opened_files                              12500                       1
115 Opened_table_definitions                   8000                        
116 Opened_tables                              9000                        
117 Queries                                  100000           1           9
118 Questions                                 90000           1           9
119 Select_scan                                2500                       1
120 Table_locks_immediate                      8000                        
121 Table_open_cache_hits                       500                        
122 Table_open_cache_misses                    9000                        
123 Threads_created                             300                        
124 Uptime                                    90000           1           1
125 # Table cache ################################################
126                      Size | 2048
127                     Usage | 5%
128 # Key Percona Server features ################################
129       Table & Index Stats | Not Supported
130      Multiple I/O Threads | Enabled
131      Corruption Resilient | Not Supported
132       Durable Replication | Not Supported
133      Import InnoDB Tables | Not Supported
134      Fast Server Restarts | Not Supported
135          Enhanced Logging | Not Supported
136      Replica Perf Logging | Enabled
137       Response Time Hist. | Not Supported
138           Smooth Flushing | Not Supported
139       HandlerSocket NoSQL | Not Supported
140            Fast Hash UDFs | Unknown
141 # Percona XtraDB Cluster #####################################
142 # Plugins ####################################################
143        InnoDB compression | ACTIVE
144 # Query cache ################################################
145          query_cache_type | OFF
146                      Size | 0.0
147                     Usage | 0%
148          HitToInsertRatio | 0%
149 # Semisynchronous Replication ################################ //The semi-sync replication is still not used.
150                    Master | Disabled
151                     Slave | Disabled
152 # Schema ##################################################### //Because of the option of "--databases",it shows the detail of it.
153 
154   Database Tables Views SPs Trigs Funcs   FKs Partn
155   zlm           1                                  
156 
157   Database InnoDB
158   zlm           1

              
您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • 1、確保是純凈系統 確保是乾凈的操作系統,沒有安裝過其它環境帶的Apache/Nginx/php/MySQL,否則安裝不上 2、sudo進行安裝 yum install -y wget && wget -O install.sh http://download.bt.cn/install/insta ...
  • 1.構建jenkins 鏡像 vim Dockerfile FROM jenkins USER root ARG dockerGid=999 RUN echo "docker:x:${dockerGid}:jenkins" >> /etc/group # 安裝 docker-compose RUN ...
  • 一、 Linux介紹 Linux是一套免費使用和自由傳播的類Unix操作系統,是一個基於POSIX和UNIX的多用戶、多任務、支持多線程和多CPU的操作系統。它能運行主要的UNIX工具軟體、應用程式和網路協議。它支持32位和64位硬體。Linux繼承了Unix以網路為核心的設計思想,是一個性能穩定的 ...
  • 1.先按Esc進入命令模式,然後在打出‘:’(英文輸入模式下) 2.輸入格式: 首行數,末行數s/要替換的字元串/替換的字元串/g (不加g只替換每行的一個要替換的字元串,後面的不會替換) eg:12,22s/abc/123/g 將12行到22行的字元串’abc‘替換成’123‘ (s代表字元串的意 ...
  • 用戶添加修改刪除 1 useradd添加用戶 添加一個新用戶hehe,指定uid為3000,家目錄為/home/haha 這裡 u是uid, g可以指定組id,不定值系統自動分配, G可以指定附加組,如果不想讓用戶登錄系統可以指定參數 ,例如apache,nginx等等 2 groupadd添加新組 ...
  • 1. 下載 2. 解壓縮文件 3. 創建安裝文件的路徑 4. 編譯安裝 進入到解壓的目錄中 ,然後是 ,`make install` 5. 此時若報錯 看這個地方 ,花了一下午的時間找到了這個解決方案,只有這個是對我有效的,然後,輸入python3就進入到了py3的環境中了,輸入pip3也可以了 ...
  • 1.圖例 >原圖出處 2. 結構圖 根目錄說明 3.linux相關命令 cd(change directory切換目錄): cd /. 進入根目錄 cd .. 返回上一次目錄 cd - 返回上一次的工作目錄 cd ~ 切換到當前登錄的住文件夾下 cd ~/ for_bar 切換到名字叫name的主文 ...
  • 一、安裝環境 1、操作系統版本:CentOS 7.5 2、MySQL版本:5.7.22(社區版) 3、MySQL安裝包:mysql-5.7.22-linux-glibc2.12-x86_64.tar.gz 二、安裝步驟 1、檢查系統中是否安裝了其他版本的MySQL(root用戶) 首先檢查系統中是否 ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...