max_connections will not change in ubuntu

August 22, 2014 2.8k views

I have /etc/my.cnf edited like this on my Ubuntu 14.04 x64 server

open_files_limit = 8192
max_connections = 1000
# etc.

However, after restart of mysql max_connections still says it is 151

What am I doing wrong?

1 comment
  • this post is changing open_files_limit
    I had posted open _ files _ limit but without the spaces

1 Answer

The MySQL conf file for Ubuntu is usually in the /etc/mysql directory. Try making the changes in the conf file in that directory.

Have another answer? Share your knowledge.