MARIADB Too Many connections

Source: Internet
Author: User

MARIADB Too Many connections

Https://www.cnblogs.com/kevingrace/p/6226324.html

There are many articles on the internet to solve this problem, some of the changes are still problematic, I this is the latest version. The test was successful.

Version:

Server VERSION:5.5.56-MARIADB MariaDB Server

CentOS Linux release 7.4.1708 (Core)

A passage in this document explains the problem:

/usr/lib/systemd/system/mariadb.service

# For example, if you want to increase mariadb ' s open-files-limit to 10000,

# need to increase Systemd ' s limitnofile setting, so create a file named
# "/etc/systemd/system/mariadb.service.d/limits.conf" containing:
# [Service]
# limitnofile=10000

To create a new folder.

/etc/systemd/system/mariadb.service.d/limits.conf

Write the configuration to the limitnofile parameter to modify the number of open files

Perform

Systemctl--system Daemon-reload

Then configure the MY.CNF in the

max_connections=1000

Systemctl Restart MARIADB

The test was successful.

MARIADB Too Many connections

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.