Server Error 'too many connections' PHP MySql
Sering kali kita mendapati error Too Many Connections. Error ini terjadi karena, semua koneksi yang disediakan sudah terpakai. Biasanya error ini sering muncul jika kita menggunakan shared hosting.
Jumlah koneksi yang disediakan di set oleh variabel max_connections pada settingan MySql. Angka default max_connection adalah 151. Angka ini kita bisa atur ke angka yang lebih tinggi. Jika memang kita menginginkan koneksi yang lebih banyak ke database MySql server.
Server Error in Application.
Too many connections
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: MySql.Data.MySqlClient.MySqlException: Too many connections
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
Stack Trace:
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18446
Solusi:
- Set ulang angka pada variabel max_connections ke angka yang lebih tinggi dan restart MySql service
- Restart MySql service untuk menutup semua koneksi yang ada sebagai solusi sementara.

0 komentar:
Posting Komentar