I found Sebastian's patch did not fix this for me. A simpler change seems to have sorted it out though:
--- debian.cnf.orig 2024-05-09 12:02:59.845494238 +1000 +++ debian.cnf 2024-05-09 12:03:10.213564938 +1000 @@ -3,10 +3,12 @@ host = localhost user = root password = +protocol = socket socket = /var/run/mysqld/mysqld.sock [mysql_upgrade] host = localhost user = root password = +protocol = socket socket = /var/run/mysqld/mysqld.sock basedir = /usr Kind regards Vince