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.
To set it globally you should add prefix 'GLOBAL' or '@@global.'. For example -
SET @@GLOBAL.auto_increment_offset = 2;
The '@@' is the same as 'SESSION' or '@@session.', it sets session variable.
Using System Variables.