I am having difficulty using MySQL on my MacBook, I am trying to start my server using sudo mysqld_safe
and this results in the following output:
14
If you don't have any important data, the easiest would be to reinstall MariaDB from scratch (otherwise skip this step), e.g.
mv /usr/local/var/mysql /usr/local/var/mysql.bak
brew reinstall mariadb
Then fix the permissions by:
sudo chmod -R u+rwX,g+rwX,o-rwx /usr/local/var/mysql
sudo chown -R $USER:_mysql /usr/local/var/mysql
Restart MariaDB services by:
brew services restart mariadb
Consider configuring your MariaDB credentials by running:
mysql_secure_installation
In case it still doesn't work, check the logs for any further issues by:
tail /usr/local/var/mysql/*.err
For example check if in old config file consist any invalid settings, as they may be not supported anymore.