ERROR 1203 (42000): User root already has more than 'max_user_connections' active connections
2012-06-17 09:37
666 查看
同事说MySql测试服务器超出了最大连接数,要求调整max_connections。
mysql> show variables like '%connect%';
+--------------------------+-------------------+
| Variable_name | Value |
+--------------------------+-------------------+
| character_set_connection | latin1 |
| collation_connection | latin1_swedish_ci |
| connect_timeout | 10 |
| init_connect | |
| max_connect_errors | 10 |
| max_connections | 1000 |
| max_user_connections | 100 |
+--------------------------+-------------------+
7 rows in set (0.00 sec)
从列表中看到MySql中的最大连接数max_connections设置为1000。
经过查询show processlist看目前服务器的连接数量远没有达到1000.
再来看错误‘ User root already has more than 'max_user_connections' active connections’
是说超出了max_user_connections的限制。
于是修改了max_user_connections
mysql> set global max_user_connections=200;
Query OK, 0 rows affected (0.00 sec)
max_connections 是指MySQL服务器的最大连接数。即所有用户最大连接数的和。
max_user_connections 是指MySQL中单个用户的最大连接数。
mysql> show variables like '%connect%';
+--------------------------+-------------------+
| Variable_name | Value |
+--------------------------+-------------------+
| character_set_connection | latin1 |
| collation_connection | latin1_swedish_ci |
| connect_timeout | 10 |
| init_connect | |
| max_connect_errors | 10 |
| max_connections | 1000 |
| max_user_connections | 100 |
+--------------------------+-------------------+
7 rows in set (0.00 sec)
从列表中看到MySql中的最大连接数max_connections设置为1000。
经过查询show processlist看目前服务器的连接数量远没有达到1000.
再来看错误‘ User root already has more than 'max_user_connections' active connections’
是说超出了max_user_connections的限制。
于是修改了max_user_connections
mysql> set global max_user_connections=200;
Query OK, 0 rows affected (0.00 sec)
max_connections 是指MySQL服务器的最大连接数。即所有用户最大连接数的和。
max_user_connections 是指MySQL中单个用户的最大连接数。
相关文章推荐
- ERROR 1203 (42000): User root already has more than 'max_user_connections' active connections
- ERROR 1203 (42000): User ivr already has more than 'max_user_connections' active connections
- ERROR 1203 (42000): User root already has more than 'max_user_connections' active connections
- User perf_inventory already has more than 'max_user_connections' active connections
- [MySQL]记录一次线上故障处理过程--> has more than 'max_user_connections' active connections
- ERROR 1226 (42000):User 'root' has exceeded the 'max_questions' resource (current value: 2)
- mysql_stmt_prepare failed! error(1461)Can't create more than max_prepared_stmt_count statements (cur
- SQLSTATE[HY000] [1203] User xxx already has more than 'max_user_connections' active co
- ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
- Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
- please specify user and group other than root, pool 'default'
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using passwor
- MySql 安装报错 :Last Error:Unable to update security. Access denied for user 'root'@'localhost'(using pa
- mysql-->ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)问题的解决办法
- ubuntu 系统解决mysql连接问题(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:
- 在linux系统中安装mysql服务器详细步骤并解决ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using passw