n error has occurred The application failed to start. exit status 1

Hi, does anyone know how to fix this error mentioned in the title? My entire app works fine locally when i run it but for whatever reason, it deploys fine but does not work at all and displays the above error message. Any help would be appreciated.

Thanks!

Is this on shinyapps.io? Does the Shiny server log contain any useful information?

It says "Failed to connect to database: Error: Can't connect to MySQL server on '127.0.0.1:3306' (111)"

I take it that you have MySQL installed and running on your local machine. As far as I know, there is no option to host databases on shinyapps.io. Your app would need to make a connection to a remote MySQL server. This article describes how to handle persistent data storage (i.e., working with data that does not disappear when the session ends).