欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

優(yōu)化Mysql參數(shù)的具體步驟-創(chuàng)新互聯(lián)

不知道大家之前對類似優(yōu)化Mysql參數(shù)的具體步驟的文章有無了解,今天我在這里給大家再簡單的講講。感興趣的話就一起來看看正文部分吧,相信看完優(yōu)化Mysql參數(shù)的具體步驟你一定會有所收獲的。

站在用戶的角度思考問題,與客戶深入溝通,找到高坪網(wǎng)站設計與高坪網(wǎng)站推廣的解決方案,憑借多年的經(jīng)驗,讓設計與互聯(lián)網(wǎng)技術結合,創(chuàng)造個性化、用戶體驗好的作品,建站類型包括:成都網(wǎng)站設計、做網(wǎng)站、企業(yè)官網(wǎng)、英文網(wǎng)站、手機端網(wǎng)站、網(wǎng)站推廣、域名與空間、網(wǎng)站空間、企業(yè)郵箱。業(yè)務覆蓋高坪地區(qū)。

一、優(yōu)化的配置文件

[client]
port=3306
socket=/tmp/mysql.sock

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
innodb_buffer_pool_size = 3G

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
user = mysql
basedir = /app/mysql
datadir = /app/mysql/data
port=3307
server-id = 1
socket=/tmp/mysql.sock

#允許創(chuàng)建函數(shù)
log_bin_trust_function_creators = 1

character-set-server = utf8
#log-error = /var/log/mysql/error.log
#pid-file = /var/log/mysql/mysql.pid
general_log = 1
skip-name-resolve
#skip-networking
back_log = 300

max_connections = 1000
max_connect_errors = 6000
open_files_limit = 65535
table_open_cache = 4096 
max_allowed_packet = 100M
binlog_cache_size = 10M
max_heap_table_size = 32M
tmp_table_size = 64M

read_buffer_size = 8M
read_rnd_buffer_size = 8M
sort_buffer_size = 8M
join_buffer_size = 128M
key_buffer_size = 8M

thread_cache_size = 64

query_cache_type = 1
query_cache_size = 128M
query_cache_limit = 2M

ft_min_word_len = 4

log_bin = mysql-bin
binlog_format = mixed
expire_logs_days = 30

performance_schema = 0
explicit_defaults_for_timestamp

lower_case_table_names = 1

myisam_sort_buffer_size = 8M
myisam_repair_threads = 1

interactive_timeout = 28800
wait_timeout = 28800

# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M

# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

# Recommended in standard MySQL setup
sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER,STRICT_TRANS_TABLES

[mysqldump]
quick
max_allowed_packet = 16M

二、參數(shù)解釋查看

max_connections = 1000       #客戶端連接數(shù)
max_connect_errors = 6000     #錯誤連接數(shù)
-----
mysql> show variables like '%conn%';
+-----------------------------------------------+-----------------+
| Variable_name                 | Value      |
+-----------------------------------------------+-----------------+
| character_set_connection            | utf8       |
| collation_connection              | utf8_general_ci |
| connect_timeout                | 10        |
| disconnect_on_expired_password         | ON        |
| init_connect                  |         |
| max_connect_errors               | 6000       |
| max_connections                | 1000       |
| max_user_connections              | 0        |
| performance_schema_session_connect_attrs_size | 0        |
+-----------------------------------------------+-----------------+
9 rows in set (0.01 sec)
-----
查看系統(tǒng)當前連接數(shù)
mysql> show status like 'Threads%';
+-------------------+-------+
| Variable_name   | Value |
+-------------------+-------+
| Threads_cached   | 9   |
| Threads_connected | 3   |   #連接數(shù)
| Threads_created  | 12   |
| Threads_running  | 2   |
+-------------------+-------+
4 rows in set (0.01 sec)
----------------------------------------------------------------------------------------------------
table_open_cache=4096   
#通常此值需要大于Opened_tables值
查看當前Opened_tables值
mysql> show status like '%Opened%';
+--------------------------+-------+
| Variable_name       | Value |
+--------------------------+-------+
| Opened_files       | 2979  |
| Opened_table_definitions | 1   |
| Opened_tables       | 1   |     #對比
+--------------------------+-------+
3 rows in set (0.00 sec)
----------------------------------------------------------------------------------------------------
max_heap_table_size = 32M
tmp_table_size = 64M
#參考文檔:https://www.jb51.net/article/85341.htm
mysql> show status like '%created_tmp%';    #查看當前情況
+-------------------------+-------+
| Variable_name      | Value |
+-------------------------+-------+
| Created_tmp_disk_tables | 2921  |
| Created_tmp_files    | 11   |
| Created_tmp_tables    | 8476  |
+-------------------------+-------+
3 rows in set (0.00 sec)
----------------------------------------------------------------------------------------------------
read_buffer_size = 8M
read_rnd_buffer_size = 8M
sort_buffer_size = 8M
join_buffer_size = 128M
key_buffer_size = 8M
參考文檔:https://www.jb51.net/article/84170.htm

----------------------------------------------------------------------------------------------------
innodb_buffer_pool_size = 3G         #大建議值為內(nèi)存的75%

---------------------------------------------------------------------------------------------------
thread_cache_size = 64
系統(tǒng)參數(shù):
mysql> show global status like 'Threads_%';
+-------------------+-------+
| Variable_name   | Value |
+-------------------+-------+
| Threads_cached   | 9   |     #這就是thread_cache_size
| Threads_connected | 3   |
| Threads_created  | 12   |
| Threads_running  | 2   |
+-------------------+-------+
4 rows in set (0.00 sec)
參考文檔:https://www.jianshu.com/p/47adb747652d

---------------------------------------------------------------------------------------------------
query_cache_type = 1
query_cache_size = 128M
query_cache_limit = 2M

mysql> SHOW VARIABLES LIKE 'have_query_cache'; 
+------------------+-------+
| Variable_name   | Value |
+------------------+-------+
| have_query_cache | YES  |
+------------------+-------+
1 row in set (0.00 sec)

mysql> SHOW STATUS LIKE 'Qcache%'; 
+-------------------------+-----------+
| Variable_name      | Value   |
+-------------------------+-----------+
| Qcache_free_blocks    | 1     |
| Qcache_free_memory    | 134200384 |
| Qcache_hits       | 0     |
| Qcache_inserts      | 0     |
| Qcache_lowmem_prunes   | 0     |
| Qcache_not_cached    | 6     |
| Qcache_queries_in_cache | 0     |
| Qcache_total_blocks   | 1     |
+-------------------------+-----------+
8 rows in set (0.00 sec)

看完優(yōu)化Mysql參數(shù)的具體步驟這篇文章,大家覺得怎么樣?如果想要了解更多相關,可以繼續(xù)關注我們的行業(yè)資訊板塊。

另外有需要云服務器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。

新聞標題:優(yōu)化Mysql參數(shù)的具體步驟-創(chuàng)新互聯(lián)
網(wǎng)站URL:http://aaarwkj.com/article28/dpjcjp.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供外貿(mào)建站、標簽優(yōu)化、移動網(wǎng)站建設、響應式網(wǎng)站、網(wǎng)站建設、做網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站建設
日本在线免费观看91| 亚洲av成人在线一区二区| 精品国产不卡在线观看| 97精品在线免费视频| 91九色精品视频在线观看| 东京热一精品无码av| 乱熟av一区二区三区| 久久精品国产亚洲熟女| 午夜少妇久久久久久久久| 亚洲午夜黄色生活片观看| 蜜臀av午夜福利在线| 欧美日韩国产综合在线观看| 人妻少妇被粗大爽av| 最新国产情侣夫妻激情| 欧美亚洲综合另类色妞| 人妻天堂久久一区二区三区| 中文字幕日韩激情欧美一区| 亚洲欧美高清一区二区| 91出品国产福利在线| 十八禁网站免费在线播放| 可以直接看内射的视频| 91薄丝激情在线播放| 亚洲一区二区三区熟妇| 成人深夜福利视频在线| 亚洲中文字幕乱码第一页| 亚洲午夜精品一区二区久久| 日本久久91跳蛋视频| 日韩欧美亚洲国产一区久久精品| 亚洲黄色片在线播放| 日韩精品伦理中文字幕| 少妇高潮毛片免费看高潮| 国产白浆一区二区视频| 日韩精品专区中文字幕| 国产精品久久久毛片av| 在线播放欧美视频91| 欧美一区二区三区成人网| 亚洲高清成人在线观看| 亚洲精品欧美激情专区| 国产一区二区三区91精品| 欧美亚洲一区二区三区91| 欧美黄色一区二区三区精品|