Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7715311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:21:12+00:00 2026-06-01T02:21:12+00:00

I found out how to change the default value of max_allowed_packet in MySQL using

  • 0

I found out how to change the default value of max_allowed_packet in MySQL using SET GLOBAL. However, each time I used this command, the default value stayed untouched!
I used these commands:

mysql --user=root --password=mypass
mysql> SET GLOBAL max_allowed_packet=32*1024*1024;
Query OK, 0 rows affected (0.00 secs)
mysql> SHOW VARIABLES max_allowed_packet;

And then the result is max_allowed_packet = 1048576. What am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:21:13+00:00Added an answer on June 1, 2026 at 2:21 am

    Hmmmm.. You have hit this NOT-A-BUG it seems. 🙂

    If you change a global system variable, the value is remembered and used for new
    connections until the server restarts. (To make a global system variable setting
    permanent, you should set it in an option file.) The change is visible to any client that
    accesses that global variable. However, the change affects the corresponding session
    variable only for clients that connect after the change. The global variable change does
    not affect the session variable for any client that is currently connected (not even that
    of the client that issues the SET GLOBAL statement).

    Refer this too. Read Shane Bester explanation.

    You should change from the my.ini/my.cnf file and restart the server for the max_allowed_packet setting to take effect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found out that build time of C# solution with many projects gets much
i am using spring security and i am wondering how to change the default
The obvious answer is to use Charset.defaultCharset() but we recently found out that this
I've found a ton of solutions online for clearing default text out of a
Unfortunately I found out that LINQ ignores the default values when inserting rows. The
I'm basing this on performance characteristics I've recently found out about Dictionary , so
In order to find out what the default email client is, I found the
I found out how to get the content of the NSPasteboard, and to copy
I found out how to generate an image in code-behind based on some input
I found out an application I wrote does not work properly under Windows Vista/7

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.