![](https://www.seosatu.com/wp-content/uploads/2023/08/mysql-too-many-connections-error-665x274.jpg)
Panduan cara ubah setingan total jumlah maksiaml koneksi database mysql max_connections.
masuk ke pengaturan Mysql lewat SSH, login akun.
nano /etc/mysql/mysql.conf.d/mysqld.cnf
Ubah file :
max_connections = 151
Nilai bisa di ubah berdasarkan kebutuhan dan spesifikasi server database kuat berapa nampung koneksi traffic dalam 1 waktu.
Jangan lupa restart:
/etc/init.d/mysql restart
Cek hasil koneksi :
mysql> SHOW VARIABLES LIKE 'max_connections'; +-----------------+-------+ | Variable_name | Value | +-----------------+-------+ | max_connections | 551 | +-----------------+-----