Bug #13125 Can't connect to MySQL server on 'localhost'
Submitted: 13 Sep 2005 3:10 Modified: 14 Sep 2005 1:41
Reporter: Gunasekar Doraiswamy Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:mysql Ver 12.22 Distrib 4.0.17 OS:Windows (Windows 2003)
Assigned to: CPU Architecture:Any

[13 Sep 2005 3:10] Gunasekar Doraiswamy
Description:
After a specific period of time, i'm getting ERROR [HY000] [MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on 'localhost' (10055) also i'm getting ERROR> number=-2146824584, description=[Operation is not allowed when the object is closed.] 

When i reboot the machine, the problem gets solved. But again after a period of time i'm getting the same error messages.

Can somebody help me!!

Thanks!

How to repeat:
Install mysql  Ver 12.22 Distrib 4.0.17 and myODBC Driver on Windows 2003 and run some application access to it for a period of time
[13 Sep 2005 7:08] Valeriy Kravchuk
Would you, please, send a part of your error log (it is the <hostname>.err file in the MySQL's data directory by default) for the period when you got such an error messages?

We really need more information on what your application is doing, what hardware is used etc. to be able to repeat the possible bug you describe.
[13 Sep 2005 7:19] Gunasekar Doraiswamy
I'm using a ASP JScript application which runs on IIS. The Hardware used are
3 X 72 GB SATA Drives With RAID 5
2 GB RAM ECC
2 X Xeon With Hyperthreading
2 X Gigabyte ethernet 10/100/1000

The Error log file is given below

050909 17:38:29  Can't open shared library 'qbwcq.dll' (errno: 0 )
MySql: ready for connections.
Version: '4.0.17-nt'  socket: ''  port: 3306
050910 10:56:52  MySql: Normal shutdown

050910 10:58:11  MySql: Forcing close of thread 2425  user: 'root'

050910 10:58:11  MySql: Forcing close of thread 2424  user: 'root'

050910 10:58:11  MySql: Forcing close of thread 2423  user: 'root'

050910 10:58:11  MySql: Forcing close of thread 2421  user: 'root'

050910 10:58:11  MySql: Forcing close of thread 2420  user: 'root'

050910 10:58:11  MySql: Forcing close of thread 2417  user: 'root'

050910 10:58:11  MySql: Forcing close of thread 2416  user: 'root'

050910 10:58:11  MySql: Forcing close of thread 2413  user: 'root'

050910 10:58:11  MySql: Forcing close of thread 2411  user: 'root'

050910 10:58:11  MySql: Forcing close of thread 2399  user: 'root'

050910 10:58:11  MySql: Forcing close of thread 2188  user: 'root'

050910 10:58:11  MySql: Forcing close of thread 2186  user: 'ODBC'

050910 10:58:11  MySql: Forcing close of thread 59  user: 'root'

050910 10:58:11  MySql: Forcing close of thread 41  user: 'ODBC'

050910 10:58:11  MySql: Forcing close of thread 18  user: 'ODBC'

050910 10:58:35  Can't open shared library 'qbwcq.dll' (errno: 0 )
MySql: ready for connections.
Version: '4.0.17-nt'  socket: ''  port: 3306
050910 13:07:41  MySql: Normal shutdown

050910 13:07:42  MySql: Forcing close of thread 312  user: 'root'

050910 13:07:42  MySql: Forcing close of thread 310  user: 'root'

050910 13:07:42  MySql: Forcing close of thread 309  user: 'root'

050910 13:07:42  MySql: Forcing close of thread 307  user: 'root'

050910 13:07:42  MySql: Forcing close of thread 305  user: 'root'

050910 13:07:42  MySql: Forcing close of thread 299  user: 'root'

050910 13:07:42  MySql: Forcing close of thread 292  user: 'root'

050910 13:07:42  MySql: Forcing close of thread 287  user: 'root'

050910 13:07:42  MySql: Forcing close of thread 286  user: 'root'

050910 13:07:42  MySql: Shutdown Complete

050910 13:09:34  Can't open shared library 'qbwcq.dll' (errno: 0 )
MySql: ready for connections.
Version: '4.0.17-nt'  socket: ''  port: 3306
050911  8:07:54  MySql: Normal shutdown

050911  8:07:55  MySql: Forcing close of thread 2922  user: 'root'

050911  8:07:55  MySql: Forcing close of thread 2921  user: 'root'

050911  8:07:55  MySql: Forcing close of thread 2920  user: 'root'

050911  8:07:55  MySql: Forcing close of thread 2919  user: 'root'

050911  8:07:55  MySql: Forcing close of thread 2918  user: 'root'

050911  8:07:55  MySql: Forcing close of thread 2914  user: 'root'

050911  8:07:55  MySql: Forcing close of thread 2913  user: 'root'

050911  8:07:55  MySql: Forcing close of thread 2910  user: 'root'

050911  8:07:55  MySql: Forcing close of thread 2907  user: 'root'

050911  8:07:55  MySql: Forcing close of thread 2906  user: 'root'

050911  8:07:55  MySql: Forcing close of thread 2306  user: 'root'

050911  8:07:56  MySql: Shutdown Complete

050911  8:09:28  Can't open shared library 'qbwcq.dll' (errno: 0 )
MySql: ready for connections.
Version: '4.0.17-nt'  socket: ''  port: 3306
050912  9:15:43  MySql: Normal shutdown

050912  9:15:44  MySql: Forcing close of thread 3490  user: 'root'

050912  9:15:44  MySql: Forcing close of thread 3488  user: 'root'

050912  9:15:44  MySql: Forcing close of thread 3486  user: 'root'

050912  9:15:44  MySql: Forcing close of thread 3482  user: 'root'

050912  9:15:44  MySql: Shutdown Complete

050912  9:17:36  Can't open shared library 'qbwcq.dll' (errno: 0 )
MySql: ready for connections.
Version: '4.0.17-nt'  socket: ''  port: 3306
050912 12:59:37  MySql: Normal shutdown

050912 12:59:38  MySql: Forcing close of thread 588  user: 'root'

050912 12:59:38  MySql: Forcing close of thread 587  user: 'root'

050912 12:59:38  MySql: Forcing close of thread 584  user: 'root'

050912 12:59:38  MySql: Forcing close of thread 580  user: 'root'

050912 12:59:38  MySql: Forcing close of thread 579  user: 'root'

050912 12:59:38  MySql: Forcing close of thread 577  user: 'root'

050912 12:59:38  MySql: Forcing close of thread 572  user: 'root'

050912 12:59:38  MySql: Forcing close of thread 568  user: 'root'

050912 12:59:38  MySql: Forcing close of thread 567  user: 'root'

050912 12:59:38  MySql: Forcing close of thread 565  user: 'root'

050912 12:59:38  MySql: Forcing close of thread 563  user: 'root'

050912 12:59:38  MySql: Shutdown Complete

050912 12:59:46  Can't open shared library 'qbwcq.dll' (errno: 0 )
MySql: ready for connections.
Version: '4.0.17-nt'  socket: ''  port: 3306
050912 14:34:19  MySql: Normal shutdown

050912 14:34:20  MySql: Forcing close of thread 268  user: 'root'

050912 14:34:20  MySql: Forcing close of thread 267  user: 'root'

050912 14:34:20  MySql: Forcing close of thread 266  user: 'root'

050912 14:34:20  MySql: Forcing close of thread 265  user: 'root'

050912 14:34:20  MySql: Forcing close of thread 262  user: 'root'

050912 14:34:20  MySql: Forcing close of thread 257  user: 'root'

050912 14:34:20  MySql: Forcing close of thread 250  user: 'root'

050912 14:34:20  MySql: Forcing close of thread 248  user: 'root'

050912 14:34:20  MySql: Forcing close of thread 247  user: 'root'

050912 14:34:20  MySql: Forcing close of thread 246  user: 'root'

050912 14:34:20  MySql: Forcing close of thread 236  user: 'root'

050912 14:34:20  MySql: Forcing close of thread 226  user: 'root'

050912 14:34:20  MySql: Forcing close of thread 225  user: 'root'

050912 14:34:20  MySql: Shutdown Complete

050912 14:34:25  Can't open shared library 'qbwcq.dll' (errno: 0 )
MySql: ready for connections.
Version: '4.0.17-nt'  socket: ''  port: 3306

Thanks
[13 Sep 2005 15:49] Valeriy Kravchuk
What is the value of PATH environment variable?

According to the log, a .dll can not be found regularly, thta it why I am asking for it...

Have you tried to install and use a newer version of MySQL (4.0.26)? 4.0.17 is a bit dated.
[14 Sep 2005 0:22] Gunasekar Doraiswamy
I have given below the my.ini configuration file values used in the server. Hope this would help you.

# Example mysql config file.
# Copy this file to c:\my.cnf to set global options
# 
# One can use all long options that the program supports.
# Run the program with --help to get a list of available options

# This will be passed to all mysql clients
[client]
#password=
port=3306
#socket=MySQL

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# The MySQL server
[mysqld]
port=3306
max_connections=200
#socket=MySQL
#skip-locking
key_buffer=512M
max_allowed_packet=16M
table_cache=512
sort_buffer=16M
record_buffer=16M
thread_cache=64
myisam_sort_buffer_size=128M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency=8
server-id=1

# Cache variables set to true and to 400M, we have 8GB, may as well make use of it.
query_cache_size=256M
query_cache_type = 1

# skip all the database engines we dont use. -AW
skip-bdb
skip-innodb
skip-external-locking

# slow queries - AW
#log-slow-queries
#long_query_time=5

# Uncomment the following if you want to log updates
#log-bin

# Uncomment the following rows if you move the MySQL distribution to another
# location
basedir = d:/mysql/
datadir = d:/mysql/data/

# Uncomment the following if you are NOT using BDB tables
#skip-bdb

# Uncomment the following if you are using BDB tables
#set-variable	= bdb_cache_size=384M
#set-variable	= bdb_max_lock=100000

# Uncomment the following if you are using Innobase tables
#innodb_data_file_path = ibdata1:2000M;ibdata2:2000M
#innodb_data_home_dir = c:\ibdata
#innodb_log_group_home_dir = c:\iblogs
#innodb_log_arch_dir = c:\iblogs
#set-variable = innodb_mirrored_log_groups=1
#set-variable = innodb_log_files_in_group=3
#set-variable = innodb_log_file_size=5M
#set-variable = innodb_log_buffer_size=8M
#innodb_flush_log_at_trx_commit=1
#innodb_log_archive=0
#set-variable = innodb_buffer_pool_size=16M
#set-variable = innodb_additional_mem_pool_size=2M
#set-variable = innodb_file_io_threads=4
#set-variable = innodb_lock_wait_timeout=50

[mysqldump]
quick
set-variable	= max_allowed_packet=16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
set-variable	= key_buffer=256M
set-variable	= sort_buffer=256M
set-variable	= read_buffer=2M
set-variable	= write_buffer=2M

[myisamchk]
set-variable	= key_buffer=256M
set-variable	= sort_buffer=256M
set-variable	= read_buffer=2M
set-variable	= write_buffer=2M

[mysqlhotcopy]
interactive-timeout
[WinMySQLadmin]
Server=D:/mysql/bin/mysqld-nt.exe

Thanks
[14 Sep 2005 1:41] MySQL Verification Team
I wasn't able to repeat the behavior reported with latest version
of the server and MyODBC on Windows 2003 Server Edition and
using Access 2003 as front end.