in reply to Suddenly cannot connect to MySQL any more

It seems that mysqld is not running on localhost. Try '/etc/init.d/mysqld start' or whatever needed to launch the service.
  • Comment on Re: Suddenly cannot connect to MySQL any more

Replies are listed 'Best First'.
Re^2: Suddenly cannot connect to MySQL any more
by Anonymous Monk on Jul 04, 2005 at 00:36 UTC

    This is windows XP, so I ran "mysqld start" from the bin directory of mysql, but I got this:

    Can't start server: Bind on TCP/IP port: No error 050703 17:20:34 Do you already have another mysqld server running on p +ort: 3306 ? 050703 17:20:34 Aborting 050703 17:20:34 mysqld: Shutdown Complete

    But when I check the processes, there was no mysqld running. Also when I do a netstat -a, no process is listening at 3306. This really troubles me.

      This of course has nothing to do with perl, so if you want better help you should probably ask someplace specific. However, possibly your mysql had an "unclean shutdown", and left some kind of marker file in a temporary directory that makes it think it's still running when it isn't.