티스토리 뷰
Homebrew 설치 후에는 MariaDB Server 는 다음과 같이 설치 가능합니다.
brew install mariadb
설치 후에는 다음으로 MariaDB Server를 시작합니다.:
mysql.server start
MariaDB Server 자동 시작하려면 다음과 같이 Homebrew 서비스 기능을 이용할 수 있습니다. (이 서비스 기능은 launchd 의 launchctl 유틸리티를 이용합니다) :
brew services start mariadb
MariaDB 실행확인
brew services list
MariaDB root 계정 설정
sudo mariadb-secure-installation
최초 Enter current password for root (enter for none): 엔터
twotrack@MacBookPro ~ % sudo mariadb-secure-installation
Password:
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
haven't set the root password yet, you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password or using the unix_socket ensures that nobody
can log into the MariaDB root user without the proper authorisation.
You already have your root account protected, so you can safely answer 'n'.
Switch to unix_socket authentication [Y/n] n
... skipping.
You already have your root account protected, so you can safely answer 'n'.
Change the root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] n
... skipping.
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
(root 계정 패스워드 admin 설정)
Mariadb root 계정 접속 테스트
mysql -u root -p
twotrack@MacBookPro ~ % mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 12
Server version: 10.6.4-MariaDB Homebrew
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [mysql]> show tables;
+---------------------------+
| Tables_in_mysql |
+---------------------------+
| column_stats |
| columns_priv |
| db |
| event |
| func |
| general_log |
| global_priv |
| gtid_slave_pos |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| index_stats |
| innodb_index_stats |
| innodb_table_stats |
| plugin |
| proc |
| procs_priv |
| proxies_priv |
| roles_mapping |
| servers |
| slow_log |
| table_stats |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| transaction_registry |
| user |
+---------------------------+
31 rows in set (0.001 sec)
DBeaver 접속
참고자료: https://mariadb.com/kb/ko/installing-mariadb-on-macos-using-homebrew/
'MariaDB' 카테고리의 다른 글
[MariaDB] 자동증가 값 조회 (0) | 2021.10.04 |
---|---|
[MariaDB] 스키마, 테이블,인덱스 사용량 확인 (0) | 2020.07.08 |
[MariaDB] INDEX 생성 (0) | 2020.07.03 |
- Total
- Today
- Yesterday
- mariadb
- 파이썬 아나콘다
- graph
- BFS
- JAVA mail
- 테이블 사용량
- jconsole
- weka
- 렌더링 특수문자
- 맥북 캡처
- ChatGPT
- react html
- SMTP
- Graphviz
- aws ec2
- dfs
- Apple 개발자 프로그램
- DBeaver
- 신경망
- t4g.micro
- MariaDB 테이블 복사
- EC2
- Index
- AUTO_INCREMENT
- ELB
- HTTP Status Code
- 경사하강법
- 실리콘 맥
- 역전파
- HTTPS
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |