I have a mysql database running on my home computer and I want to access it from other networks (a laptop when I leave the house).
I followed a few posts and set up privileges:
+-----------------------------------------------------------+
| Grants for test@% |
+-----------------------------------------------------------+
| GRANT USAGE ON *.* TO 'test'@'%' |
| GRANT ALL PRIVILEGES ON `database`.`table` TO 'test'@'%' |
+-----------------------------------------------------------+
I am using SQLAlchemy to connect to the DB:
engine = create_engine('mysql://test:my_password@my_home_computer_ip_address:3306/table')
However I am getting this error:
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (2003, "Can't connect to MySQL server on 'my_ip_address' (61)")
What am I doing wrong?