title: Cannot connect to MySQL database (running on WSL2) from Windows Desktop Application "MySQL Workbench"
body: <p>I set up MySQL on Windows Subsystem for Linux (WSL2 version).  I'm relatively new to MySQL, but I have confirmed the following: </p>
  
  <ul>
  <li>It is running (<code>ps ax | grep mysqld</code> returns a value)</li>
  <li>It is running on default host <code>127.0.0.1</code></li>
  <li>It is running on default port <code>3306</code></li>
  </ul>
  
  <p>To login to the mysql shell, I use the command <code>sudo mysql -u root -p</code>.  Without sudo, I am unable to login to the shell.</p>
  
  <p>I assume that this issue has something to do with the host that the MySQL service is running on, but I have no idea how to change that and properly connect.  Below is a screenshot of the connection setup in MySQL Workbench.</p>
  
  <p><a href="https://i.stack.imgur.com/Bmcmp.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Bmcmp.png" alt="enter image description here"></a></p>
  
  <p>And below is the error that I get when I use the settings shown and my <code>root</code> user password.</p>
  
  <p><a href="https://i.stack.imgur.com/eMLi6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eMLi6.png" alt="connect to mysql workbench 2"></a></p>
  
  <p><a href="https://i.stack.imgur.com/4AcAY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4AcAY.png" alt="enter image description here"></a></p>