Check system limtis
cat /proc/$(cat /var/run/mysqld/mysqld.pid)/limits
Update system limits
$ vim /etc/security/limits.conf
mysql soft nofile 65535
mysql hard nofile 65535
$ reboot
$ mkdir -p /etc/systemd/system/mysql.service.d/
$ vim /etc/systemd/system/mysql.service.d/limits.conf
[Service]
LimitNOFILE=infinity
$ systemctl daemon-reload
$ /etc/init.d/mysql restart
Check system limtis again
cat /proc/$(cat /var/run/mysqld/mysqld.pid)/limits