This is common MySQL error you get when your MySQL daemon service is not running. Resolution: Start the service with:-
service mysql / mysqld service
restart MySQL service in windows in control panel
The error (2003) Can't connect to MySQL server on 'server' (10061) indicates that the network connection has been refused. You should check that there is a MySQL server running, that it has network connections enabled, and that the network port you specified is the one configured on the server.