search

Home  >  Q&A  >  body text

What is the best way to connect Flutter with a MySQL database?

<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>
P粉277464743P粉277464743510 days ago692

reply all(1)I'll reply

  • P粉543344381

    P粉5433443812023-08-17 11:39:55

    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

    reply
    0
  • Cancelreply