<참고 링크>
MariaDB는 MySQL개발자가 나와서 개발한 DB로, MySQL과 유사한 구조를 띄고 있습니다.
MySQL을 기반으로 fork하여 자체적으로 개발하는 서비스로 MariaDB뿐만 아니라 PercornaServer도 있다고 합니다.
MariaDB는 MySQL의 엔진에 PerconaServer의 엔진을 함께 사용합니다.
설치 명령어는 다음과 같습니다.
$ brew install mariadb
설치 후, MariaDB Server를 시작합니다.
$ mysql.server start Starting MariaDB 221218 14:31:46 mysqld_safe Logging to '/opt/homebrew/var/mysql/maseunghyeon-ui-MacBookPro.local.err'. 221218 14:31:46 mysqld_safe Starting mariadbd daemon with databases from /opt/homebrew/var/mysql SUCCESS!
MariaDB Server를 자동으로 시작하려면 다음과 같이 Homebrew 서비스 기능을 이용할 수 있습니다.
$ brew sercies start mariadb
MariaDB Server 시작후에는 사용자 계정으로 로그인하면 됩니다.
$ sudo mysql -u root -p # 패스워드 입력 Welcome to the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 64 Server version: 8.0.30 MySQL Community Server - GPL Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MySQL [(none)]>