When I try to load a large SQL dump, why do I receive the following error: ERROR 2006: MySQL Server has gone away? To address this issue, perform the following steps: 1.Open the /etc/my.cnf file with your preferred text editor. 2.Enter max_allowed_packet=

my sql 5.5  how can I change this vaiable without ssh access. and what is the best way to do this the correct code?

how to do without ssh I'm on vps Linux  the answer here below is from cpanel/whm website.  

  1. Open the /etc/my.cnf file with your preferred text editor.
  2. Enter max_allowed_packet=# in the [mysqld] section. Replace # with a number.
  3. Save the file.
  4. Restart MySQL® with the /scripts/restartsrv_mysql script.

1 answer

0 votes

You need to edit the my.cnf file and restart MySQL, there's no other way to change the setting.

If you don't have command line access, then you will need to use a tool that allows you to edit the file indirectly.  In this case, as you're using cpanel, the question becomes "does cpanel have a tool to allow me to edit the settings?".  If it does not, then you are stuck with no way to edit the file.

Suggest an answer

Log in or Sign up to answer
Community showcase

Scrum Roles Explained: the Do's and the Don'ts

Hello Community,  Today we are going to talk about the three Scrum Roles. There is the Development Team, the Scrum Master and the Product Owner. In my opinion these three are all really impo...

56 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you