Open epcim opened 8 years ago
Proposed solution:
http://duntuk.com/how-raise-ulimit-open-files-and-mysql-openfileslimit
/etc/init.d/mysqld
ulimit -S -n ${DAEMON_FILES_LIMIT:-102400} >/dev/null 2>&1
/etc/my.cnf
[myqld_safe]
open_files_limit = 102400
[myqld]
open_files_limit = 102400
cd /etc/systemd/system/
rm mysql.service
#Copy service to services directory (so it won't be overwritten by any upgrade):
cp /usr/lib/systemd/system/mysqld.service mysqld.service
# In the Service section add LimitNOFILE=1024000.
[Service]
User=mysql
Group=mysql
LimitNOFILE=1024000```
http://askubuntu.com/questions/288471/mysql-cant-open-files-after-updating-server-errno-24
OS: Ubuntu (Debian) deployments
For init.d probably setting
ulimit -n xxx
might be accepted. For upstart etc..: