Last week I updated mysql max\_connections to 1000 from 151 using

```
use mysql;
set global max_connections = 1000;

```

Today there was a power outage at the hosting company and the servers shut down and were then restarted. After restart, the max\_connections variable was reset to 151.

Is this default behavior? How can I prevent max\_connections global from getting reset? 

Reference:

```
MySQL 5.7

```