ERROR 1698: Access Denied for User 'root'@'localhost' on Ubuntu
On Ubuntu and Debian, MySQL's root account logs in with auth_socket, so sudo mysql works while your app, Workbench and phpMyAdmin get ERROR 1698. Why no password will ever work over TCP, and the fix that leaves root alone.