Can’t increase MySQL max_connection stuck at 214

Issue :

  • Increased the max_connection value to max_connections=2500 in my.cnf.
grep -rnw max_connections /etc/mysql/

Output: max_connections = 2500

  • But max_connection value stuck in 214 Connections.

Cause :

Default open_files_limit for MySQL has been reached.

Resolution :

1. Find out whether MySQL, or MariaDB service is used:

  systemctl list-unit-files | grep -E 'mysql|mariadb'

Output: mariadb.service enabled

2. Create an override for the service file.

systemctl edit mysql.service

3. Add the following content

 [Service]
 LimitNOFILE=4096

You can also define LimitNOFILE=infinity.

4. Restart MySQL Service.

service mysql restart

Verify :

Run the below query to check max_connection.

show variables like 'max_connections';

Output:

+—————–+——-+
| Variable_name | Value |
+—————–+——-+
| max_connections | 2500 |
+—————–+——-+
1 row in set (0.01 sec)

Issue Resolved 🙂

Please Drop Comment if you faced any issue at any point, I will try to help asap.
100% LikesVS
0% Dislikes

26 Comments

  • If you want to use the photo it would also be good to check with the artist beforehand in case it is subject to copyright. Best wishes. Aaren Reggis Sela

  • If you want to use the photo it would also be good to check with the artist beforehand in case it is subject to copyright. Best wishes. Aaren Reggis Sela

  • This paragraph gives clear idea designed for the new visitors of blogging, that genuinely how to do running a blog. Clotilda Hanan Holmen

  • Dead indited content , appreciate it for information . Brynn Gerry Horn

  • Wow, this post is fastidious, my sister is analyzing these things, therefore I am going to let know her. Terrie Alexandros Borroff

  • Incredible points. Outstanding arguments. Keep up the good work. Jewel Teodoor Rollie

  • You made a number of nice points there. I did a search on the subject and found the majority of persons will have the same opinion with your blog. Anthia Ezechiel Fransisco

  • Wow, this article is nice, my younger sister is analyzing these things, therefore I am going to inform her. Dianna Avery Wessling

  • Just simply want to emphasize I am relieved I came upon your web site. Dixie Claudell Ruberta

  • At this moment I am going to do my breakfast, once having my breakfast coming again to read more news. Cherlyn Chrissie Jehoash

  • Major thankies for the blog. Much thanks again. Really Cool. Madalena Hastings Cheston

  • I think the admin of this website is truly working hard in favor of his website, as here every data is quality based data. Bibi Francklin Pentheam

  • This is one awesome article post. Really looking forward to read more. Keep writing. Beatriz Averell Bozovich

  • Thank you ever so for you article post. Really looking forward to read more. Keep writing. Belle Brander Chemaram

  • I really like and appreciate your blog article. Really thank you! Much obliged. Natividad Wendel Steinway

  • Pretty! This was an incredibly wonderful article. Many thanks for providing this information. Jerrilyn Kermie Cornelia

  • You have brought up a very good points , thanks for the post. Belinda Jeremiah Swart

  • Appreciate you sharing, great post. Really looking forward to read more. Gillie Mata Westphal

  • You made some decent points there. I checked on the web to find out more about the issue and found most people will go along with your views on this site. Lexie Ulick Shieh

  • you are actually a excellent webmaster. The web site loading velocity is incredible. It kind of feels that you are doing any unique trick. In addition, The contents are masterpiece. you have performed a wonderful process on this subject! Andi Arni Deron

  • I was examining some of your articles on this website and I think this web site is really instructive! Keep putting up. Hedvige Sherman Thurber Adore Skipton Alene

  • Do you mind if I quote a few of your posts as long as I provide credit and sources back to your blog? My website is in the exact same niche as yours and my users would certainly benefit from some of the information you provide here. Please let me know if this ok with you. Cheers! Lexy Tuckie Enrica

    • yeah, that will be good.
      I will love to work with you.

  • Some really choice blog posts on this web site , saved to favorites . Holly-Anne Correy Koal

  • Pretty! This was an incredibly wonderful post. Many thanks for providing this info. Caroline Leonerd Alisun

Comments are closed.