php – 使用clearDB在MySQL中自动增加1

我正在使用带有clearDB的 Windows Azure.当前数据库自动增量值为10.我希望它为1.

我试图在PHPMyAdmin中运行这些命令,

1)

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

错误:#1227 – 拒绝访问;您需要(至少一个)此操作的SUPER权限

2)

set auto_increment_increment = 1;
set auto_increment_offset = 1;

之后我通过这个命令检查了它,

SHOW VARIABLES LIKE 'auto_inc%';

结果:

Variable_name                 Value     
auto_increment_increment      10
auto_increment_offset         1

可能是什么原因?

当我向clearDB提交票证时,他们回复了我:

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.

相关文章

统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...
前言 之前做了微信登录,所以总结一下微信授权登录并获取用户...
FastAdmin是我第一个接触的后台管理系统框架。FastAdmin是一...
之前公司需要一个内部的通讯软件,就叫我做一个。通讯软件嘛...
统一支付是JSAPI/NATIVE/APP各种支付场景下生成支付订单,返...