source: https://mariadb.com/kb/en/library/ins...
MariaDB: https://mariadb.org/
1. Install Homebrew: https://brew.sh/
2. paste the link: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Hom...) into terminal
3. Then install mariadb:
$ brew install mariadb
$mysql.server start
4. Now to log in: mysql -u root
If ERROR 1045 (28000):access denied for ‘root’@’localhost’(using password) IS SHOWING,
Then stop the mysql server from system preferences. MySQL will show in the bottom, just click it and click Stop MySQL Server
Upgrade MariaDB:
first update brew installation: brew update
then to upgrade mariadb server: brew upgrade mariadb