Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

cant increase open files limit #9

Open
anthonysomerset opened this issue Apr 9, 2014 · 4 comments
Open

cant increase open files limit #9

anthonysomerset opened this issue Apr 9, 2014 · 4 comments

Comments

@anthonysomerset
Copy link

out of the box after an upgrade from debian stock mysql 5.5 to dotdeb 5.6 gives me the following error in daemon.log

Buffered warning: Could not increase number of max_open_files

i tried setting my /etc/security/limits.conf but to no avail

any ideas?

@gplessis
Copy link
Owner

gplessis commented Apr 9, 2014

Please see some comments here : http://www.dotdeb.org/2014/04/02/mysql-5-6-17-for-wheezy/#comment-29419

@gplessis
Copy link
Owner

@anthonysomerset : did manage to fix your issue by editing /etc/security/limits.conf ?

@ewasser
Copy link

ewasser commented Sep 24, 2014

Why was the calling of /usr/bin/mysqld_safe changed?

- /usr/bin/mysqld_safe > /dev/null 2>&1 &
+ su - mysql -s /bin/sh -c "/usr/bin/mysqld_safe > /dev/null 2>&1 &"

Is there are a reason for this? This is the reason why the settings from my.cnf can't be used. The ulimit in mysqld_safe will be only executed if the current user is root.

Will this be fixed to the old behaviour? Otherwise thousands of installations have to change their /etc/security/limits.conf and /etc/pam.d/su because the later file don't use "pam_limits.so". It's out commented.

@mpingu
Copy link

mpingu commented Aug 8, 2017

Is there an Update to this Issue? Since its open from April 2014 now.

I have looked into the MySQL Init File from Debian and from MariaDB. Both dont start the mysqld_safe process as mysql user, they start it as root.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants