Tuning sambungan ke MySQL

January 22 | Posted by Muhammad Yusuf E. | OpenSource Tags: ,

mysqlKetika kita mengakses MySQL lewat PHP atau Perl maka terkadang terasa sambungan sering timeout. Nah kalau anda merasa seperti itu, maka coba anda tuning setting anda di MySQL seperti di bawah ini. Setting ini dapat di simpan di file /etc/my.cnf. Tergantung dari OS yang anda miliki, letak file my.cnf mungkin berbeda.

[mysqld]
set-variable = wait_timeout=180
set-variable = interactive_timeout=180

nilai 180 adalah dalam detik. Setelah anda setting seperti di atas, jangan lupa restart process MySQL anda.

Tags: ,

One Response to “Tuning sambungan ke MySQL”

  1. sambungan says:

    [...] cpanelnya di http://localhost. Ok, seperti biasa, untuk menginstall wordpress kenalah ada databse.Info Computer & Technology Tuning sambungan ke MySQLThis site is offer information about politic, technology, linux, mswindows, progamming, security … [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>