8

I am using Windows Azure with clearDB. Current database auto-increment value is 10. I want it as 1.

I tried to run these commands in PHPMyAdmin with,

1)

set global auto_increment_increment = 1;
set global auto_increment_offset = 1;

ERROR: #1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation

2)

set auto_increment_increment = 1;
set auto_increment_offset = 1;

After that I checked it by this command,

SHOW VARIABLES LIKE 'auto_inc%';

RESULT:

Variable_name                 Value     
auto_increment_increment      10
auto_increment_offset         1

What could be the reason?

RNK
  • 5,582
  • 11
  • 65
  • 133
  • 1
    So, you need a `SUPER` privilidged user... – Wrikken Sep 23 '14 at 19:03
  • I am logged in as admin user already in clearDB. – RNK Sep 23 '14 at 19:04
  • But you don't have a `SUPER` privilege, which means your admin user isn't all-powerful there. However, take a step back: why do you even _care_ what auto-increment number is used? There's very little reason you should, and those usually mean _upping_ the increment rather then setting it to 1.... – Wrikken Sep 23 '14 at 19:24
  • `clearDB` provided us only one username and password. I think it's not privileges based accounts. – RNK Sep 23 '14 at 19:40
  • I believe you should create a ticket to clearDB. – Thiago Custodio Sep 23 '14 at 20:28

1 Answers1

13

When I submitted ticket to clearDB, They replied me like this:

ClearDB uses circular replication to provide master-master MySQL support. As such, certain things such as auto_increment keys (or sequences) must be configured in order for one master not to use the same key as the other, in all cases. We do this by configuring MySQL to skip certain keys, and by enforcing MySQL to use a specific offset for each key used. The reason why we use a value of 10 instead of 2 is for future development.

RNK
  • 5,582
  • 11
  • 65
  • 133
  • Great, I thought this step by 10 was about a bad configuration, but now, it makes a lot of sense, thank you very much! – Rene Polo Apr 24 '18 at 04:03