title: How to connect flutter to localhost mysql database
body: <p>I want to connect a localhost mysql db to flutter but I'm failing to do so. I tried mysql1 with these connections:</p>
  
  <pre><code>ConnectionSettings(
          host: '10.0.2.2',
          port: 3306,
          user: 'root',
          password: "root",
          db: 'company'
  </code></pre>
  
  <p>and i tried replacing host by 'localhost' and it didn't work. Any help? I am not using an emulator.</p>