The follow error (2003) Can't connect to MySQL server on 'server' (10061) indicates that the network connection has been refused.
You should check the follow reasons :
1. MySQL Server are running.
2. Firewall blocking access on port 3306.
3. 3306 TCP/IP port number is configured to listen.
4. MySQL instance is configured to use.
5. Mysqld server was not started with the --skip-networking option.
Also you can check the mysql documentation error :
http://dev.mysql.com/doc/refman/5.0/en/can-not-connect-to-server.html
Regards,
Peter