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

How make to work mysqldump variable.

Questions regarding the Database Server
MySQL, PostgreSQL, MariaDB, Percona Server, phpMyAdmin, phpPgAdmin
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Kurogane
Posts: 11
Joined: Thu Apr 21, 2016 7:27 am

How make to work mysqldump variable.
  • Quote

Post by Kurogane » Thu Mar 29, 2018 6:14 pm

I want to know how i can use [mysqldump].

The problem i have is i'm getting "mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet'"

I'm trying to put in my.cnf but not work

Code: Select all

[mysqldump]
max_allowed_packet=64M
When i try to run cli mysqldump always give me same error.

Code: Select all

mysqldump --defaults-file=/usr/local/vesta/conf/.mysql.localhost --single-transaction USER_db1 > db.sql
mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table `wp_postmeta` at row: 870
But when i try to run works

Code: Select all

mysqldump --defaults-file=/usr/local/vesta/conf/.mysql.localhost --max_allowed_packet=64M --single-transaction USER_db1 > db.sql
Any ideas what is going on?
Top

romani
Posts: 5
Joined: Mon Apr 09, 2018 4:32 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: How make to work mysqldump variable.
  • Quote

Post by romani » Thu Apr 19, 2018 5:04 am

Add to comand --max_allowed_packet=512M or needle size.
Example

Code: Select all

mysqldump --defaults-file=$mycnf --max_allowed_packet=512M --single-transaction -r $1 $2 2> $err
Top


Post Reply
  • Print view

2 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