Open port will cause a security issue, so do that ONLY for dev or debug
I trust we all know that we should set an account for remote access in MySQL, such as
grant all on example_db.* on "example_user"@"%" identified by "your password";
flush privileges;
So, the reason is not misconfig of MySQL, it’s windows firewall, we have to open port by follow actions.
Search(win+Q)->Firewall-> Windows Defender Firewall-> inbound rule
create rule -> port -> release 3306 (sorry I don’t know what is it in English version)