No. Remote access is denied by the server firewall. All incoming requests on port 3306 (mysql) will be blocked.
I think you have a different problem though. If you are using localhost as the server, you are saying that mysql and the file are on the same server, which is not blocked. The error...