I have tried the following script but unfortunately doesn\'t work. I am using a free MySQL database provider. Any ideas?
import MySQLdb myDB = MySQLdb.conne
open your database in mysql and type the following :
mysql> GRANT ALL ON *.* TO root@'x' IDENTIFIED BY 'Your-password'
where x is the ip address of the user that wants to access your db.
use this link for more information: How to Allow MySQL Client to Connect to Remote MySQL server