Skip to main content

max_user_connectiosn resets

Comments

10 comments

  • GOT
    The command you use to update it is temporary. You need to set it in /etc/my.cnf.
    0
  • cPanelLauren
    Yea, the next time MySQL restarts that will be wiped out as @GOT noted in order for it to be persistent it needs to be added in /etc/my.cnf
    0
  • Stephen Bignell
    But I have it set in /etc/my.cnf as displayed in the message. It's set to 300.
    0
  • cPanelLauren
    I see, what's in the mysql error log? You can find the log location in /etc/my.cnf
    0
  • Stephen Bignell
    Sorry, logging wasn't enabled. I've got it logging now so I can see what happens overnight and see if I can tell where it switches the user back to 30. Funny thing is, I can set the user to 80 max_user_connections and restart mysql and it stays at 80. Could the user themselves be setting it back to 30 in a script they use?
    0
  • cPanelLauren
    That's doubtful there's probably a configuration error with the number you're setting.
    0
  • Stephen Bignell
    Hi. There is nothing in the error log overnight. I'm at a loss. There must be something that happens overnight (I assume during maintenance) that resets the user back to 30. As I said, I can set it and restart mysqld and it stays at 80, but next morning it's back to 30. Should I up the level of connections in the my.cnf to 500?
    0
  • cPanelLauren
    Highly doubtful changing the connections to 500 would make my difference - what's in /etc/my.cnf
    is the limit only changing for one specific user or all users?
    0
  • Stephen Bignell
    Entire my.cnf is below [mysqld] # performance-schema=0 # default-storage-engine=MyISAM # innodb_file_per_table=1 # open_files_limit=50000 # max_sessions = 500 log_error=/var/log/mysqld.log max_user_connections=300 max_allowed_packet=268435456 open_files_limit=23000 We only have 2 users we have to set to a higher than standard connections as they are running 2 x CMS programs, but they are both on the same cpanel account. It happens to both of them.
    0
  • cPanelLauren
    Right so if they're on the same account that's 1 user. So is this ONLY happening to this user or is the limit modified globally. It sounds like that user may have a custom file setting this limit.
    0

Please sign in to leave a comment.