title: MySQL needs IP however im running it in my own computer
body: <p>I am performing unit testing with a full functional SMS application. I encountered this while running the unit testing.  </p>
  
  <p><a href="https://i.stack.imgur.com/aosu4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aosu4.png" alt="TEST ERROR"></a></p>
  
  <p>Can anyone explain to me why i need an ip if im just using mysql in my own computer? Im plainly using localhost,root, and admin. so why do i still need an ip address like this? can anyone explain Please badly needed.</p>
  
  <p>I started adding these codes before you suggested your answer</p>
  
  <pre><code>"CREATE user '" &amp; txtUsername.Text &amp; "'@'" &amp; txtServer.Text &amp; "' IDENTIFIED BY '" &amp; txtPassword.Text &amp; "';"
  "GRANT ALL PRIVILEGES ON *.* TO '" &amp; txtUsername.Text &amp; "'@'" &amp; txtServer.Text &amp; "' identified by '" &amp; txtPassword.Text &amp; "' WITH GRANT OPTION;"
  "CREATE user '" &amp; txtUsername.Text &amp; "'@'%' IDENTIFIED BY '" &amp; txtPassword.Text &amp; "';"
  "GRANT ALL PRIVILEGES ON *.* TO '" &amp; txtUsername.Text &amp; "'@'%' identified by '" &amp; txtPassword.Text &amp; "' WITH GRANT OPTION;"
  "FLUSH PRIVILEGES;"
  </code></pre>
  
  <p>I then came up with this problem. i dont know what to do first</p>
  
  <p><a href="https://i.stack.imgur.com/tOi35.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tOi35.png" alt="new test error"></a></p>
  
  <p>Can anyone assist me please :'(</p>