Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Method of mysql configuration file

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains the "mysql configuration file method". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian to study and learn the "mysql configuration file method" together.

# For advice on how to change settings please see

#For advice on how to change settings, see

# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html

MySQL configuration file

[mysqld]

[My qld]

#

#

# Remove leading # and set to the amount of RAM for the most important data

#Remove leader and set amount of RAM for most important data

# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.

#Cache in mysql. For dedicated servers, start with 70% of total RAM, otherwise start with 10%.

# innodb_buffer_pool_size = 128M

#innodb_buffer_pool_size=128m

#

#

# Remove leading # to turn on a very important data integrity option: logging

#Remove leader to turn on a very important data integrity option: logging

# changes to the binary log between backups.

#Changes to binary logs between backups.

# log_bin

#Wooden boxes

#

#

# Remove leading # to set options mainly useful for reporting servers.

#Remove leader to set options primarily for report servers.

# The server defaults are faster for transactions and fast SELECTs.

#Server defaults are faster for transactions and quick selection.

# Adjust sizes as needed, experiment to find the optimal values.

#Resize as needed, experiment to find the best value.

# join_buffer_size = 128M

#Connection buffer size =128m

# sort_buffer_size = 2M

#Sort buffer size =2m

# read_rnd_buffer_size = 2M

#Read buffer size =2m

socket=/var/lib/mysql/mysql.sock

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

#It is recommended to disable symbolic links to prevent various security risks

symbolic-links=0

Symbolic link =0

log-error=/var/log/mysqld.log

Log Error =/var/log/mysqld.log

pid-file=/var/run/mysqld/mysqld.pid

PID file =/var/run/mysqld/mysqld.pid

Thank you for reading, the above is the "mysql configuration file method" content, after the study of this article, I believe we have a deeper understanding of the mysql configuration file method, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report