DE EN IT

~/errors / Database

ERROR 1698 (28000): Access denied for user 'root'@'localhost'

On many Debian and Ubuntu installs the database root account does not log in with a password but through the operating system user (plugin auth_socket in MySQL, unix_socket in MariaDB). Only the system user root is let in, so sudo mysql works and everyone else gets 1698, even with the right password.

New articles by e-mail

One e-mail per new article. No tracking, unsubscribe any time. As a thank-you after confirming: my “Server operations & patching” checklist (PDF).