Bobcares

2 Methods to Fix Error 1203 cannot log in to the MySQL server

by | May 20, 2020

Many website owners face the error ” 1203 cannot log in to the MySQL server” after they have recently migrated to a new server or when the server traffic grows.

Here at Bobcares, we have webmasters, web hosts, and other online service providers fix database errors such as this as part of our Server Management Services.

Today we’ll go through the cause of this error and how to fix it.

 

Common reason for error 1203 Cannot log in to the MySQL server

MySQL error 1203 is commonly related to exceeding the max_user_connections limit on the server. When this limit is exceeded, users face issues connecting through phpMyadmin and through database connections scripts.

 

1203 cannot log in to the mysql server

Let us look at the possible solutions to fix the issue.

 

Solution 1: Fix the code

A badly written code is the most common reason for the max_user_connections of the server to exceed. At times, developers forget to close database connections that they open in code.

These connections can be triggered also by a plugin that you installed recently.

Proper identification of the connection opening codes and applying a fix to them can indeed solve the 1203 MySQL error.

 

Solution 2: Increase max_user_connection

The maximum user connections value of the server at times can be limited to a low value. Consequently, it triggers the “Cannot log in to the MySQL server’ error fast.

It is always a good idea to cross-check the max_user_connections limit, before applying any other fix to this issue. While in MySQL prompt, use the command below to get an idea of the limit:

SHOW VARIABLES LIKE 'max_user_connections';
+----------------------+------------+
| Variable_name | Value |
+----------------------+------------+
| max_user_connections | 2147483647 |
+----------------------+------------+

The value above is comparatively a higher one. You may need to cross-check with your WebHost before increasing this value as increasing them to a limit beyond what actually the hardware can support will affect the performance of the website adversely.

There are two methods to change the maximum user connections value. Let us look at them one by one.

 

Method 1: Editing the MySQL Configuration file:

The maximum user connection limit can be increased directly by adding a line as in the /etc/my.cnf file

max_user_connections = <set number that you want>

 

Method 2: Editing the value command line:

To edit the maximum user connection value of MySQL globally, we can use the command below:

SET GLOBAL max_user_connections = <desired value>;

 

[Need help to fix MySQL error 1203? We are available 24×7]

 

Conclusion

In short, exceeding the maximum user connection limit of the server triggers 1203 cannot log in to the MySQL server error. Today we discussed the two methods that our Support Engineers use to fix the issue.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF