Failed to connect to mysql at 127.0.0.1:3306 with user root@localhost [closed]

Tell me why it doesn't work? I've looked all over and can't connect

enter image description here

I found this answer https://askubuntu.com/questions/773446/unable-to-connect-via-mysql-workbench-to-localhost-in-ubuntu-16-04-passwordless


Allow your ip address to remote access in your db if not done yet:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'your_machine_ip' IDENTIFIED BY 'password';