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

  • Home
  • SEARCH
  • 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 8411423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:25:07+00:00 2026-06-10T00:25:07+00:00

I ran the command as root: set @@auto_increment_offset = 2; But the effect cannot

  • 0

I ran the command as root:

set @@auto_increment_offset = 2;

But the effect cannot be seen from other connections. Why not? It is global.

From http://dev.mysql.com/doc/refman/5.1/en/replication-options-master.html:
“If the global value of either variable is set, its effects persist until the global value is changed or overridden by setting the session value, or until mysqld is restarted.”

That doesn’t seem to agree with what I am seeing.

Ultimately, I would like to know if there any way to permanently set the offset for all clients without restarting mysqld?

  • 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-10T00:25:08+00:00Added an answer on June 10, 2026 at 12:25 am

    As per MySQL documentation you need to set values of auto_increment_offset for both GLOBAL and SESSION.

    SET GLOBAL auto_increment_offset  = 2;
    SET SESSION auto_increment_offset  = 2;
    
    SHOW VARIABLES LIKE '%auto_increment_offset%';
    

    If the global value of either variable is set, its effects persist until the global value is changed or overridden by setting the session value, or until mysqld is restarted. If the local value is set, the new value affects AUTO_INCREMENT columns for all tables into which new rows are inserted by the current user for the duration of the session, unless the values are changed during that session.

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

Sidebar

Related Questions

I ran the command - sudo curl http://npmjs.org/install.sh | sh But I am getting
I ran the command python manage.py runserver 0.0.0.0:8000 It started the server up, but
I just ran a command update sometable set col = '1'; by mistake without
I just ran this command update table set mydata = '$' + mydata where
I ran my tests from the root folder of my app. The tests lay
I ran ldd command on an executable created by Open MPI. It shows a
I just installed python2.6 parallel to my python2.4. I ran this command ln -s
I ran the following command: LOAD DATA INFILE '/Users/Tyler/Desktop/players_20120318.txt' INTO TABLE players FIELDS TERMINATED
I ran the convert_to_south command on my app. Everything seems to have gone fine:
I know where the URL ( localhost/svn/BodyMap/ ) is, but I do not know

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.