php - MySQL Timeout in XAMPP -


i have xampp installed on microsoft windows server 2003. have php application in xampp/htdocs directory. have started apache , mysql instances.

i have noticed every morning, application gives mysql error when try log in application. fixed after restarting mysql instance in xampp control panel on server. think may due timeout. how prevent timeout?

this my.ini:

[client]  port            = 3306  socket          = "d:/xampp/mysql/mysql.sock" [mysqld] port= 3306 socket = "d:/xampp/mysql/mysql.sock" basedir = "d:/xampp/mysql"  tmpdir = "d:/xampp/tmp"  datadir = "d:/xampp/mysql/data" pid_file = "mysql.pid" key_buffer = 16m max_allowed_packet = 1m sort_buffer_size = 512k net_buffer_length = 8k read_buffer_size = 256k read_rnd_buffer_size = 512k myisam_sort_buffer_size = 8m log_error = "mysql_error.log" plugin_dir = "d:/xampp/mysql/lib/plugin/"   skip-federated  server-id   = 1  innodb_data_home_dir = "d:/xampp/mysql/data" innodb_data_file_path = ibdata1:10m:autoextend innodb_log_group_home_dir = "d:/xampp/mysql/data" innodb_buffer_pool_size = 16m innodb_additional_mem_pool_size = 2m innodb_log_file_size = 5m innodb_log_buffer_size = 8m innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 50  [mysqldump] quick max_allowed_packet = 16m  [mysql] no-auto-rehash  [isamchk] key_buffer = 20m sort_buffer_size = 20m read_buffer = 2m write_buffer = 2m  [myisamchk] key_buffer = 20m sort_buffer_size = 20m read_buffer = 2m write_buffer = 2m  [mysqlhotcopy] interactive-timeout 

this error come across every morning before restarting mysql on xampp:

warning: mysql_pconnect(): mysql server has gone away in d:\myapplication\mysql.inc on line 432  warning: mysql_pconnect(): link server lost, unable reconnect in d:\myapplication\mysql.inc on line 432 fatal error: failed connect database 


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -