Can not connect to MariaDB with "ERROR 1040 (HY000): Too many connections"

Solution Verified - Updated -

Issue

  • Including using the root user, unable to connect to the running MariaDB, and reporting the error "ERROR 1040 (HY000): Too many connections"
# /usr/bin/mysql -u root -p
Enter password: 
ERROR 1040 (HY000): Too many connections

Environment

  • Red Hat Enterprise Linux 8, 9
  • MariaDB 10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content