Why won't `max_connections` update?
Welcome.

As per MySQL Documentation, your MySQL server does not have enough resources.

Also go through this


  The table_open_cache and max_connections system variables affect the
  maximum number of files the server keeps open. If you increase one or
  both of these values, you may run up against a limit imposed by your
  operating system on the per-process number of open file descriptors.