HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlMinor

mysqlcheck: unknown variable 'max_allowed_packet=100M'

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
100mmax_allowed_packetunknownmysqlcheckvariable

Problem

I get the following error when I try to use mysqlcheck, mysqlrepair or mysqlanalyze:

mysqlcheck: unknown variable 'max_allowed_packet=100M'


I am trying to find whether there are any corrupt tables or indexes.

Background:

  • MySQL Ver 14.14 Distrib 5.5.24, for Linux (x86_64) using readline 5.1



  • I used the command mysqlcheck -u xxxx -h xxx.xxx.xx.xx -d xxxx -p xxxxx



my.cnf

[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock
default-character-set = utf8
max_allowed_packet = 100M


Under [client]

Solution

According to this bug report (resolved as "not a bug"), you shouldn't put settings for mysqld in the [client] section of your .ini file.

Put the max_allowed_packet option in the [mysqld] section instead.

See Using Option Files for more details.

Context

StackExchange Database Administrators Q#42869, answer score: 2

Revisions (0)

No revisions yet.