I am not sure if I can ask this basic question here. But, I want to know if I can connect mysql server in LAN from another PC outside of LAN. Is it usually not possible, isn't it?
I have one PC in LAN that my office has in their LAN. And, I want to access to the mysql from my PC home for development purpose.
I tried the following commands on mysql server PC to create a user for accessing from outside and grant all privileges to it:
CREATE USER 'myName'@'myHomePcIpAddress' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'myName'@'myHomePcIpAddress' WITH GRANT OPTION;
and tried to access from home PC using mysql workbench. And I got this error:
Host 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL server
If sql server in LAN want to allow another PC outside the LAN to access, what setting should we need? Is it not normal or not common practice?