관리 메뉴

웹개발자의 기지개

[Ubuntu] MariaDB 포트 변경하기 본문

리눅스서버/Ubuntu

[Ubuntu] MariaDB 포트 변경하기

웹개발자 워니 2026. 3. 17. 22:44

sudo systemctl status mariadb

mariadb 상태 확인

 

sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf

 

 

 

port = 원하는 포트로 변경

bind-address = 0.0.0.0

 

bind-address = 127.0.0.1 이면 외부접속 안된다.

 

 

mariadb Shell 에서 포트번호 확인

show global variables like 'port';

 

참고 : https://limsw.tistory.com/127

 

 

 

 

Comments