I\'ve been trying to set mysql and phpMyAdmin for the last 12 hours, without any success. And yes, after hours and hours of Google-ing I know that is a common problem and I\
If you are using homebrew restart mariadb. I also had the same issue and after stopping and starting mariadb it started working again.
brew services restart mariadb