- Joined
- Apr 20, 2016
- Messages
- 130
- Points
- 18
I read that if a website has more than 150 connections to your Mysql then it could down and you need to restart your mysql server. Is that true? and how to check and set max_connections in MySQL?
SHOW VARIABLES LIKE "max_connections";
mysql> SHOW VARIABLES LIKE "max_connections";
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 151 |
+-----------------+-------+
1 row in set (0.00 sec)
SET GLOBAL max_connections = 10000;
mysql> SHOW VARIABLES LIKE "max_connections";
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 10000 |
+-----------------+-------+
1 row in set (0.00 sec)
Why the OP is asking about max_connections in MySQL but you are talking to FTP connections and 421 error, there is a relation between them?You would want to login to your cpanel.
1.) find either "FTP season control" or find "FTP connections" (this would be located under the files section)
2.) From here you can see all the connections. use this page to disconnect the connections which are unnecessary to get rid of the 421 error.
Now you are good to connect again. BTW a reply to OP's post, I have no known a time when 421 took down a website.
I will add two screen shots below demonstrating but as there are no current connections to that FTP you will not see any connections in the screen shot.
This already said above.You could do it programatically by running the following command in mysql propmt
mysql> SET GLOBAL max_connections = 5000;
ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.
The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!