I have an app using a remote MySQL service and has max_user_connections
set on the plans. For my pricing level, it's 30 connections. My app functions fine; all operations work.
However, while MySQL Workbench is open (for manual db imports) if I attempt to reboot my remote app I get an error:
[2022-02-04T22:24:05.313Z] error Error: ER_USER_LIMIT_REACHED: User '************' has exceeded the 'max_user_connections' resource (current value: 30)
Upon closing MYSQL Workbench, my remote app reboots fine.
My app has max connections set to 30, although just to be safe I made it 29 in an attempt to reserve 1 connection for MWB.
Do I need to reserve even more for MWB? How many connections would it need? Can I limit MWB on my local machine (Ubuntu) so it uses less (how about just one?) connections?
To avoid this in the future, what would be best? I suppose shut my app down for maintenance at 3am and run a DB job then.