I set up MySQL on Windows Subsystem for Linux (WSL2 version). I'm relatively new to MySQL, but I have confirmed the following:
- It is running (
ps ax | grep mysqld
returns a value) - It is running on default host
127.0.0.1
- It is running on default port
3306
To login to the mysql shell, I use the command sudo mysql -u root -p
. Without sudo, I am unable to login to the shell.
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.
And below is the error that I get when I use the settings shown and my root
user password.