How to fix #1698 - Access denied for user ‘root’@’localhost’ In the latest versions of MariaDB (possibly MySQL), unix_socket authentication is used by default. If you are not familiar with it, then you might have encountered the error “#1698 - Access denied for user ‘root’@’localhost’”. Let's take a look at what unix_socket authentication is in MySQL and MariaDB, and how...