Endless Motivation

MariaDB 외부접속 허용 본문

IT/Web & DB

MariaDB 외부접속 허용

Renesys 2016. 10. 23. 05:26

1. use mysql


2. insert into user(Host, User, Password) values(''%', 'root', password('[비번]');


3. grant all privileges on busapp.* to 'root'@'%' identified by '[비번]';


4. flush privileges;




* CentOS에서 3306포트 접근권한 풀기


1. sudo firewall-cmd -add-port=3306/tcp


2. sudo firewall-cnml --permanent -add-port=3306/tcp

Comments