Step-by-Step Guide to Installing MariaDB on Mac OS

Hi everyone, today I'm going to share a detailed, step-by-step guide on how to install MariaDB on macOS. This process will help you get MariaDB up and running smoothly on your system.

So let's get started!

For this installation, I will be using Homebrew, a popular package manager for macOS that simplifies the installation of software.

Okay let's started!

brew install mariadb

After installing MariaDB, next step is start the service.

brew services start mariadb

MariaDB now is running, to open it just enter mysql code.

mysql

After we go in mysql, next step is configure the root password.

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('mypass');
FLUSH PRIVILEGES;

The password for root just changed.

Now we can exit.

exit;

To open mysql with user root, you can do this.

mysql -u root -p

And type your password.

Ok, that is!

See you on next article!