From a script on your free x10hosting account to the x10hosting database, the host name is localhost
If you are trying to connect to the x10hosting database from outside of you free x10hosting account, you cannot. Access is blocked. No exceptions.
to which hosting plan ?I upgraded