2014-09-02 72 views
1

我部署了一个Web应用程序到CloudBees,并使用一键GUI创建了一个MySQL数据库。它看起来像auto_increment_increment选项设置为10(表中的id在每个新行中增加10)。我试图改变auto_increment_increment在虚拟主机提供商的数据库中更改`auto_increment_increment`

SET GLOBAL auto_increment_increment=1; 

但我得到了一个错误:Error Code: 1227. Access denied; you need (at least one of) the SUPER privilege(s) for this operation

如何更改auto_increment_increment?在您的供应商

+0

你确定吗?是一个非常引人注目的配置...如果你执行:'SHOW variables LIKE'%auto_increment%';'什么值给你? – Sal00m 2014-09-02 09:00:58

+0

该错误显示访问权限权限。你可以试试这个,如果你得到可能的als?截断表并再次运行此查询?因为你已经设置了10并且插入了一张桌子。 – 2014-09-02 09:01:24

+0

@ Sal00m我得到'auto_increment_increment' = 10和另外三个变量。 – Alex 2014-09-02 09:03:47

回答

1

交流中心配置....

按照manual

The SUPER privilege is required to set global variables.

因此,你需要用此权限的用户才能访问,你应该问你关于它的供应商。

当然你也可以改变这个变量为会话:

SET SESSION auto_increment_increment=1; 

你不需要任何特殊权限做到这一点