#You should uninstall outdated mysql/mariaDB
brew uninstall mysql brew uninstall mariadb
Delete things about DB.
#To install MariaDB
at this step MariaDB may need you install openssl, because of this DB is dependent on openssl.
and this will automatically.
brew install maria
step two point one
YOU MUST DO ‘unset TMPDIR’ in your command line and I don’t know what the reason is.
Otherwise, mysql service couldn’t boot.
#After install mariadb, you should start MariaDB daemon by command
#init you databases by default conf
#And then. You should configure your password for root. by this
mysqladmin -u root password 'PasswordHereEForRoot'
You should get some positive feedback on that action:
that’s all, have FUN…