Install mariadb under Mac

Source: Internet
Author: User
Tags administrator password

1. Enter the official website https://downloads.mariadb.org/mariadb/10.2.6/, download mariadb 10.2.6 stable version (free), select the version when choosing Mac. pkg version, download and double click Install

2. Turn on the Mac terminal

Sudo/usr/local/mariadb/server/bin/mariadb

Enter the administrator password, after connecting to MARIADB, you need to change the root password and create a new user, because the remote tool cannot log in with the root user (the default root password is empty)

3. Change root password and connection mode: (Mysql_native_password: Password login, unix_socket default shell login)

Update Mysql.user set Authentication_string=password (' Password '), plugin= ' Mysql_native_password ', Password=password (' password ') where user= ' root ';

Flush privileges;

4. Start mariadb:

sudo launchctl start com.mariadb.server

5. Turn off the DB:

sudo launchctl stop Com.mariadb.server

Install mariadb under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.