We're a website hosting company, not database hosting!
Remote MySQL (to x10hosting, not from) has been disabled, and your code will not work. If you want remote MySQL you will have to use either Premium or VPS, although I would only recommend VPS if you are experienced in Linux administration...