Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

trying to restore pressflow database and getting this error, I even tried it with --max_allowed_packet, still getting same error:

[root@6shdbm01 tmp]# mysql --max_allowed_packet=1024M pressflow < pressflow.sql 
ERROR 1153 (08S01) at line 786: Got a packet bigger than 'max_allowed_packet' bytes
[root@6shdbm01 tmp]# 
share|improve this question
up vote 1 down vote accepted

The max_allowed_packet variable must be set on both the client and the server. If the server's value is lower than the client's value, this error occurs.

You will need to set max_allowed_packet in the [mysqld] section of /etc/my.cnf to complete the operation.

For more information, see the MySQL documentation.

share|improve this answer
how can I see inside of mysql what this variable equals too now? – alexus Jan 31 '13 at 20:41
SHOW VARIABLES LIKE 'max_allowed_packet'; – Michael Hampton Jan 31 '13 at 20:45
thank you so much! – alexus Jan 31 '13 at 21:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.