 <p>Have you written some code for it for accessing remote database. Is there any error?? If you need to access your database remotely then you need to do following .</p> <p>Mysql :-</p> <pre><code> mysql&gt; GRANT ALL ON *.* to root@'localhost' IDENTIFIED BY 'your-root-password'; mysql&gt; FLUSH PRIVILEGES; </code></pre> <p>This will grant to all users to access database remotely.</p>