While the script ran wonderfully well with localhost, when migrating to my server it gives an error "Connection to the server was reset". I have used some other editors with same credentials and it works. Could you please guide if any modification needs to be made while migrating to actual hosting server ? I am using the adminer.php file
What do you mean by "migrating"? This looks like a firewall issue.