溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

mysql配置文件的方法

發(fā)布時間:2021-06-28 16:54:52 來源:億速云 閱讀:127 作者:chen 欄目:大數(shù)據(jù)

這篇文章主要講解了“mysql配置文件的方法”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“mysql配置文件的方法”吧!

# For advice on how to change settings please see
#有關(guān)如何更改設(shè)置的建議,請參閱
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html

mysql 配置文件 


[mysqld]
[我的qld]
#
#
# Remove leading # and set to the amount of RAM for the most important data
#刪除前導(dǎo)并設(shè)置最重要數(shù)據(jù)的RAM量
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
#在mysql中緩存。對于專用服務(wù)器,從總RAM的70%開始,否則從10%開始。
# innodb_buffer_pool_size = 128M
#innodb_buffer_pool_size=128m
#
#
# Remove leading # to turn on a very important data integrity option: logging
#刪除前導(dǎo)以打開一個非常重要的數(shù)據(jù)完整性選項:日志記錄
# changes to the binary log between backups.
#備份之間對二進制日志的更改。
# log_bin
#木箱
#
#
# Remove leading # to set options mainly useful for reporting servers.
#刪除前導(dǎo)以設(shè)置主要用于報表服務(wù)器的選項。
# The server defaults are faster for transactions and fast SELECTs.
#對于事務(wù)和快速選擇,服務(wù)器默認設(shè)置更快。
# Adjust sizes as needed, experiment to find the optimal values.
#根據(jù)需要調(diào)整大小,進行實驗以找到最佳值。
# join_buffer_size = 128M
#連接緩沖區(qū)大小=128m
# sort_buffer_size = 2M
#排序緩沖區(qū)大小=2m
# read_rnd_buffer_size = 2M
#讀取緩沖區(qū)大小=2m

socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
#建議禁用符號鏈接以防止各種安全風(fēng)險
symbolic-links=0
符號鏈接=0
log-error=/var/log/mysqld.log
日志錯誤=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
PID文件=/var/run/mysqld/mysqld.pid

感謝各位的閱讀,以上就是“mysql配置文件的方法”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對mysql配置文件的方法這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關(guān)知識點的文章,歡迎關(guān)注!

向AI問一下細節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI