MYSQL Configuration and tuning
There are hundreds of settings that can be placed in my.cnf. For the 'lite' user of MySQL, they won't matter as much.
Once your database becomes non-trivial, it is advisable to set the following parameters:
This should be set to about 70% of available RAM (if you have at least 4GB of RAM; a smaller percentage if you have a tiny VM or antique machine). The setting controls the amount of cache used by the InnoDB ENGINE. Hence, it is very important for performance of InnoDB.
Parameter to allow huge data to insert
If you need to store images or videos in the column then we need to change the value as needed by your application
max_allowed_packet = 10M
M is Mb, G in Gb, K in Kb
Increase the string limit for group_concat
group_concat is used to concatenate non-null values in a group. The maximum length of the resulting string can be set using the group_concat_max_len option:
Setting the GLOBAL variable will ensure a permanent change, whereas setting the SESSION variable will set the value for the current session.