Documentation

Visit Our xCloud Knowledge Base

Here is your one-stop source for in-depth articles, FAQs, and tutorials for you to excel at hosting & managing your websites.


How to Change MySQL Max Connection via xCloud?

xCloud lets you optimize your server’s performance and handle increased traffic by adjusting the max connection parameter in the MySQL configuration file.

Steps to Change MySQL Max Connection via xCloud #

We will be using the command line to change MySQL Max Connection. Follow the steps below to increase the maximum connections MySQL allows on your xCloud server using the terminal.

Step 1: Access MySQL Configuration File #

Open the command terminal and run this command to edit MySQL config file:
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf

change MySQL max connection

Step 2: Modify Max Connection Parameter #

In the MySQL configuration file in the nano text editor add these two lines at the end of the file as shown below if not exist (Values are based on preference):


max_allowed_packet = 64M

max_connections = 200

change MySQL max connection


Step 3: Restart MySQL #

Restart MySQL by running this: sudo systemctl restart mysql to ensure that the MySQL server is operating correctly with the new max_connection value.ย 

change MySQL max connection

Following the steps you will have successfully increased the maximum connections allowed by MySQL on your xCloud server. This adjustment can significantly enhance your server’s performance and capacity to handle demanding workloads.

change MySQL max connection

This is how you can easily change MySQL max connection via xCloud.

Still stuck! Contact our support team for assistance in detail with your queries.

What are your feelings
Updated on September 23, 2024

Server Name

RAM

SSD

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Newcomer

1GB

25GB

$4.50

$5.00

$6.00

Basic

2GB

55GB

$9.00

$10

$12.00

Standard

4GB

80GB

$18.00

$20

$24.00

Professional

8GB

160GB

$36.00

$40

$48.00

Business

16GB

320GB

$72.00

$80

$96.00

Server Name

RAM

SSD/NVMe

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Lite

1GB

32GB

$5.40

$6.00

$8.00

Personal

2GB

88GB

$16.20

$18.00

$24.00

Growing

4GB

128GB

$21.60

$24.00

$32.00

Elite

8GB

256GB

$43.20

$48.00

$64.00

Titanium

8GB

384GB

$86.40

$96.00

$96.00

Ultimate

32GB

512GB

$172.80

$192.00

$192.00