What is the best way to connect Flutter with a MySQL database?
P粉277464743
2023-08-16 17:38:23
<p>How to connect Flutter to a MySQL database is the best way, is it safe to put the connection string in it, and what do I need to set up this method? </p>
<p><strong>Note that I prefer to use C# for the connection script. </strong></p>
<p>I tried MySQL package1 but found it to be unsafe. </p>
Start by creating a web service (preferably REST) and deploy it on any web server. Then use that endpoint in your Flutter app. Because it is not recommended to connect to the database directly from the front end