Connecting Strapi to Hosted MySQL Database

you should add you IP to the hosted mysql whitelist
OR you can just add “%” to give access to all IP ( Don’t use this for production )

i connected to a hosted mysql this way !