Make sure someone is actually LISTENING on port 3306. $ netstat -plnt You should see one line like this: tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 5002/mysqld In my case, mysqld is only listening on the 'lo' interface. Make sure that mysql is not using UNIX sockets (which use a file handle instead of an IP address). Alan .