There are four users in the database: * generic root, * local root * desec * desec_test Hence, the old update command failed as it tried to update both root users to be 'localhost'.
@@ -1,4 +1,4 @@
-- Narrow down root logins
INSTALL PLUGIN unix_socket SONAME 'auth_socket';
-UPDATE mysql.user SET Host = 'localhost', plugin = 'unix_socket' WHERE User = 'root';
+UPDATE mysql.user SET plugin = 'unix_socket' WHERE User = 'root' AND Host = 'localhost';
FLUSH PRIVILEGES;