自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

十大最值得注意的MySQL變量

數(shù)據(jù)庫(kù) MySQL
MySQL數(shù)據(jù)庫(kù)中的變量非常多,下文為您整理出了十大最值得注意的MySQL變量,希望對(duì)您學(xué)習(xí)MySQL數(shù)據(jù)庫(kù)能夠有一些幫助。

MySQL變量很多,其中有一些MySQL變量非常值得我們注意,下面就為您介紹一些值得我們重點(diǎn)學(xué)習(xí)的MySQL變量,供您參考。

1 Threads_connected
首先需要注意的,想得到這個(gè)變量的值不能show variables like 'Threads_connected';而是
show status like 'Threads_connected'(下面的變值也是這樣的);
意思:變量的值是表示當(dāng)前有多少個(gè)客戶連接該mysql服務(wù)器
引申:連接數(shù)是否過(guò)多,網(wǎng)絡(luò)時(shí)候存在問題!特別是在pconnect的情況下:)

2 Created_tmp_disk_tables
意思:在硬盤上建立的臨時(shí)表數(shù)目
引申:如果這個(gè)值比較大的話,那么查詢時(shí)需要建立臨時(shí)表(CREATE TEMPORARY TABLE)的操作 就要消耗更多的時(shí)間

3 Handler_read_first
意思:讀表索引的第一行
引申:如果這個(gè)值變化比較大的話,可以認(rèn)為表索引建立的有問題,全索引的掃描操作比較多

4 Innodb_buffer_pool_wait_free
意思:This variable indicates the number of times MySQL has to wait for memory pages to be flus
引申:If this variable is high, it suggests that MySQL's memory buffer is incorrectly configured for the amount of writes the server is currently performing.
不了解這個(gè):)

5 Key_reads
意思:讀文件系統(tǒng)上面的索引的次數(shù)
引申:如果這個(gè)值太大的話,就需要考慮key cache設(shè)置是否正常了

6 Max_used_connections
意思:重起后到現(xiàn)在最大連接數(shù)
引申:服務(wù)器負(fù)載和可能需要調(diào)節(jié)的連接數(shù)

7 Open_tables
意思:當(dāng)前打開的表的數(shù)目
引申:如果這個(gè)值很低,table cache很大,則減小table cache的設(shè)置是沒有問題的,如果這個(gè)值很大,并接近了table cache的值,我們就需要加大talbe cache的設(shè)置

8 Select_full_join
意思:全連接的查詢數(shù)目
引申:數(shù)值過(guò)大,需要建立更多的索引來(lái)避免

9 Slow_queries
意思:慢查詢的數(shù)目
引申:過(guò)大的話就要察看慢查詢的日志,并且檢查sql語(yǔ)句書寫是否恰當(dāng)

10 Uptime
意思:運(yùn)行時(shí)間,單位秒
引申:This value is useful to analyze server uptime, as well as to generate reports on overall system performance. A consistent low value indicates that the server is being frequently restarted, thereby causing frequent interruptions to client service.

 
 

【編輯推薦】

MySQL系統(tǒng)變量應(yīng)用探究

深入研究MySQL結(jié)果字符串

MySQL截取字符串函數(shù)方法

MySQL字符串各列類型的區(qū)別

MySQL多個(gè)條件判斷示例

責(zé)任編輯:段燃 來(lái)源: 互聯(lián)網(wǎng)
相關(guān)推薦

2023-05-16 14:11:48

2022-08-11 11:42:14

黑客大會(huì)黑客演講

2010-07-21 16:28:33

職場(chǎng)

2015-06-23 15:48:41

Swift 2.0iOS9

2017-12-26 08:52:29

React庫(kù)DevOpsCSS

2010-10-28 11:22:45

開源項(xiàng)目

2009-12-07 09:26:00

LinuxWindows

2018-05-22 08:33:22

2013-09-16 13:18:28

遺留系統(tǒng)系統(tǒng)遷移

2009-12-12 11:01:30

LinuxWindows系統(tǒng)特性

2021-01-06 15:58:45

智能手機(jī)折疊屏操作系統(tǒng)

2023-07-27 17:09:55

智能建筑物聯(lián)網(wǎng)5G

2018-12-11 04:05:26

邊緣計(jì)算數(shù)據(jù)物聯(lián)網(wǎng)

2024-12-02 13:29:46

2010-02-04 09:57:50

2020-10-28 09:37:08

React代碼數(shù)據(jù)

2022-11-28 16:27:24

DevOps開發(fā)

2013-07-24 09:20:39

大數(shù)據(jù)創(chuàng)業(yè)公司大數(shù)據(jù)

2012-02-02 13:50:52

蘋果三星華為

2011-06-28 15:03:25

云計(jì)算云服務(wù)
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)