This tip is for Ubuntu users. Today, after upgrading to Ubuntu 22.04 LTS Local stopped creating or importing sites.
During the upgrade I didn’t pay attention and just clicked YES to everything. Ubuntu 22.04 replaced all the configuration files including the MySQL files. Ooops!
-Remove MySQL server completely. Please follow the steps here
-Install MySQL. Please follow the steps here
Sorry if this is common knowledge, but I thought I’d share it for non-tech savvy people who use Ubuntu and face this issue.