!!...MySQL&MariaDB

[MySQL] max_open_files more than 1024

qnfmfmd_ 2018. 1. 11. 13:57
BIG

Edit /etc/security/limits.conf and add the following lines

mysql soft nofile 65535
mysql hard nofile 65535

then reboot.

Then edit /usr/lib/systemd/system/mysqld.service or /usr/lib/systemd/system/mariadb.service and add

LimitNOFILE=infinity
LimitMEMLOCK=infinity

Then restart the db service:

systemctl reload mariadb.service
systemctl reload mysql.service


LIST