Java操作Mysql数据库,进行插入数据,运行程序报错
Data source rejected establishment of connection, message from server: "Too many connections"
处理方法:
找到Mysql安装路径下的 my.ini 文件,修改以下内容(需要管理员模式)
# max_connections设置最大连接数为10000
max_connections=10000
# max_user_connections设置每用户最大连接数为5000
max_user_connections=5000