Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I've edited my.ini in the directory where MySQL is installed and inserted max_allowed_packet=50M under the [mysqld] section, but when I launch the MySQL command line and do:

show variables like 'max_a%'

It still shows a value of 1048576. I've rebooted the box, but to no avail.

EDIT: I believe the issue was that MySQL was reading one of the (many) other config files (e.g., my-huge.ini). I re-ran the MySQL config wizard and it appears to be honoring the settings in my.ini now.

(btw: Why so many configs?!?)

share|improve this question
up vote 1 down vote accepted

The following page shows the different directories from which MySQL reads the configuration files:

share|improve this answer

You're most likely confusing 'global' and client variables. Try:

show global variables like 'max_a%';

Make sure you're specifying the option under "[mysqld]" as well. Dominik's recommendation regarding modifying the correct config file is key, regardless.

share|improve this answer

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.