如何在 XAMPP 中更改 max_connections_per_hour?
How to change max_connections_per_hour in XAMPP?
在我的生产环境中,我遇到了这个错误:
User 'GirkovArpa' exceeded the 'max_connections_per_hour' resource (current value: 500)
我的开发环境中没有这个问题,所以我需要将 max_connections_per_hour
设置为 500
才能复制它。
我该怎么做?我的数据库是来自 XAMPP 控制面板的 运行。
我在 my.config
中没有看到这个变量名,它也可以从 XAMPP 控制面板访问。
我在Windows。
这是一个MySQLaccount resource limit,旨在限制服务器的资源消耗。
如果您愿意允许更多的每小时连接到该用户,您可以更改参数的值。我不知道这是否可以从 xamp 中控制,但是,在纯 SQL 中,以下 SQL 语句将完成工作:
ALTER USER 'GirkovArpa'@'???' WITH MAX_CONNECTIONS_PER_HOUR 1000;
... 其中 ???
是您的服务器的名称。
0
值禁用限制。
您可能还需要检查其他限制:
MAX_QUERIES_PER_HOUR -- The number of queries an account can issue per hour
MAX_UPDATES_PER_HOUR -- The number of updates an account can issue per hour
MAX_USER_CONNECTIONS -- The number of simultaneous connections to the server by an account
在我的生产环境中,我遇到了这个错误:
User 'GirkovArpa' exceeded the 'max_connections_per_hour' resource (current value: 500)
我的开发环境中没有这个问题,所以我需要将 max_connections_per_hour
设置为 500
才能复制它。
我该怎么做?我的数据库是来自 XAMPP 控制面板的 运行。
我在 my.config
中没有看到这个变量名,它也可以从 XAMPP 控制面板访问。
我在Windows。
这是一个MySQLaccount resource limit,旨在限制服务器的资源消耗。
如果您愿意允许更多的每小时连接到该用户,您可以更改参数的值。我不知道这是否可以从 xamp 中控制,但是,在纯 SQL 中,以下 SQL 语句将完成工作:
ALTER USER 'GirkovArpa'@'???' WITH MAX_CONNECTIONS_PER_HOUR 1000;
... 其中 ???
是您的服务器的名称。
0
值禁用限制。
您可能还需要检查其他限制:
MAX_QUERIES_PER_HOUR -- The number of queries an account can issue per hour
MAX_UPDATES_PER_HOUR -- The number of updates an account can issue per hour
MAX_USER_CONNECTIONS -- The number of simultaneous connections to the server by an account