Hello, I got "Lost connection to MySQL server during query" from time to time when connecting to MySQL server.
Using following PHP code, $this -> conn = mysql_connect( $host, $c_user, $c_passwd) ; if( $this -> conn == 0 ) raise_error( __FILE__, __LINE__, "Can't connect2db : $host ") ; <= trigger error and exit Thank you for advanced answer! ############################################### = Some information on my system = MySQL Version : 4.0.15a OS : Redhat 9.0 glibC : glibc-2.3.2-27.9 mysql> show variables like '%packet%' ; +--------------------+---------+ | Variable_name | Value | +--------------------+---------+ | max_allowed_packet | 1048576 | <= it is just 1 Mb, but error occurs on connection. +--------------------+---------+ $ uname -a Linux *****.****.com 2.4.20-18.9 #1 Thu May 29 07:08:16 EDT 2003 i686 i686 i386 GNU/Linux /etc/my.cnf ################################## # [mysqld] # # log-slow-queries # # # # default-table-type=innodb # # set-variable = innodb_buffer_pool_size=200M # # set-variable = long_query_time=1 # <= is this matter? Is this too short? ################################## ########################## Heo, Jungsu Mr. SimpleX Internet. http://www.simplexi.com Filter : sql -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]