I have developed a shiny app and connected it with MySQL database which is running on my local computer. the app is working smoothly when I am accessing it locally. But when I deployed the app on shinyapps.io it is unable to connect with the SQL database.
I know this is not a new question and there are several articles on it but somehow they were unable to help me.
Till now I have done the following (suggested in the articles):-
Changed the bind address in the my.ini file to 0.0.0.0
Change the firewall settings and allowed a new inbound rule to allow from port 3306.
Is port 3306 in your local computer reachable remotely via a public IP? Usually, a public IP (if you have one) is assigned to your router/modem and you need to configure port forwarding in it to redirect incoming traffic to your computer.
Do you get any error message that can give us a clue about what might be going wrong? Your app's logs could be a good place to start looking for information.
Are you sure you have a public IP assigned to your router? Can you connect to your MySQL server remotely using any other software? Have in mind that ISPs sometimes use a NAT3 configuration which means you share a public IP with other clients making impossible to route traffic to your server directly.
I think this is not related to shiny or shinyapps.io but to your specific network configuration