호그래머

라즈베리파이4(Raspberry Pi 4 Model B) MariaDB(MySQL) 설치 20.08.05 본문

Raspberry Pi

라즈베리파이4(Raspberry Pi 4 Model B) MariaDB(MySQL) 설치 20.08.05

호그래머 2020. 8. 5. 23:14
728x90

라즈베리파이 MariaDB 설치

1. sudo apt-get update

2. sudo apt-get install mariadb-server mariadb-client

3. sudo mariadb u root p

4. use mysql; (MySQL 실행중)

5. GRANT ALL PRIVILEGS ON *.* TO ‘root’@’%’IDENTIFIED BY '비밀번호'; (MySQL 실행중)

6. FLUSH PRIVILEGES; (MySQL 실행중)

7. 데이터베이스 관리프로그램 접속을 위한 외부 접속 권한 설정

sudo vi /etc/mysql/mariadb.conf.d/50-server.conf
bind-address = 127.0.0.1 수정
bind-address = 0.0.0.0 수정 후 저장

8. 재시작

9. HeidiSQL 설치 및 실행

https://www.heidisql.com/download.php

Installer, Portable version 선택하여 다운로드

1. 라즈베리파이에 MariaDB를 설치하였습니다.

2. MySQL과  완전히 동일하기 때문에 MySQL을 사용했던 경험으로 쉽게 접근할 수 있습니다.

3. HeidiSQL을 설치하여 쉽게 데이터베이스를 관리 할 수 있습니다.

 

참고링크

https://mariadb.org/

https://www.heidisql.com/

 

728x90
Comments