mysql disable unix_socket authentication for root

ALTER USER root@localhost IDENTIFIED VIA mysql_native_password USING PASSWORD(‘rootpass’);