Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Database Server
  • Search

MySQL Error #2006

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
David Diaz
Posts: 8
Joined: Sun Dec 28, 2014 4:29 pm
Contact:
Contact David Diaz
Website

MySQL Error #2006
  • Quote

Post by David Diaz » Sun Dec 28, 2014 4:33 pm

Hi,

I am trying to import a MySQL database ( 65MB ), but I get error PhpMyAdmin:

#2006 - MySQL server has gone away

I need to change the value "max_allowed_packet", but do not know where it is.

Does anyone know ?

Thanks.
Top

drMacFaulty
Posts: 88
Joined: Thu Mar 06, 2014 7:52 pm
Contact:
Contact drMacFaulty
Website

Re: MySQL Error #2006
  • Quote

Post by drMacFaulty » Sun Dec 28, 2014 5:59 pm

I think you need to change /etc/mysql/my.cnf (on debian) for this and add:

Code: Select all

max_allowed_packet = 70M
Source: http://dev.mysql.com/doc/refman/5.5/en/ ... large.html
Top

David Diaz
Posts: 8
Joined: Sun Dec 28, 2014 4:29 pm
Contact:
Contact David Diaz
Website

Re: MySQL Error #2006
  • Quote

Post by David Diaz » Sun Dec 28, 2014 6:08 pm

Hi drMac,

Yes! Thanks, works fine!

;)
Top

drMacFaulty
Posts: 88
Joined: Thu Mar 06, 2014 7:52 pm
Contact:
Contact drMacFaulty
Website

Re: MySQL Error #2006
  • Quote

Post by drMacFaulty » Sun Dec 28, 2014 6:49 pm

David Diaz wrote:Hi drMac,

Yes! Thanks, works fine!

;)
No problem! We're on this planet to help each other, right?
Have fun :)
Top

David Diaz
Posts: 8
Joined: Sun Dec 28, 2014 4:29 pm
Contact:
Contact David Diaz
Website

Re: MySQL Error #2006
  • Quote

Post by David Diaz » Sun Dec 28, 2014 9:07 pm

;)
Top

imagpt
Posts: 1
Joined: Sat Mar 31, 2018 8:14 pm

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: MySQL Error #2006
  • Quote

Post by imagpt » Wed Jul 25, 2018 7:26 pm

It does not work if your are using Nginx+PHP-FPM server.
In this case you need to update PHP-FPM setting under Vesta CP
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Database Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password