📜 ⬆️ ⬇️

What needs to be configured in mySQL immediately after installation?

Free translation of a rather old article from the MySQL Performance Blog that it’s better to set up immediately after installing the basic version of mySQL.

It's amazing how many people install mySQL on their servers and leave it with the default settings.

Despite the fact that in mySQL there are quite a few settings that you can change, there is a set of really very important characteristics that you definitely need to optimize for your own server. Usually, after such a small setting, server performance increases noticeably.


As you can see, these are global settings. These variables depend on the server hardware and mySQL engines used, while session variables are usually customized specifically for specific tasks. If you mostly use simple queries, then there is no need to increase the sort_buffer_size value, even if you have an extra 64 GB of RAM. Moreover, large cache values ​​can only degrade server performance. Session variables are best left for later to fine tune the server.
')
PS: mySQL installation comes with several pre-installed my.cnf files calculated for different loads. If you have no time to configure the server manually, then it is usually better to use them than the standard configuration file, choosing the one that best fits your server load.

Source: https://habr.com/ru/post/66684/


All Articles