테스트 환경
NCP 리눅스 서버 1대 생성
OS : Ubuntu 18.04
DB : MySQL 8.0
1) root계정 비밀번호 변경
ALTER user 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '변경 비밀번호';
FLUSH PRIVILEGES;
2) 외부접속 허용 설정
netstat -anpt
mysql> use mysql;
mysql> create user 'root'@'%' identified by 'Hoseo123!@#';
mysql> grant all privileges on *.* to 'root'@'%';
mysql> flush privileges;
mysql> select host, user from user;
vi /etc/mysql/mysql.conf.d/mysqld.cnf
bind-address 부분 주석처리
systemctl restart mysql
3) 결과 확인
'Linux Server' 카테고리의 다른 글
[Linux] Ubuntu 20.04 Apache2 Webdav 구축 (1) | 2022.09.16 |
---|---|
[Linux] Ubuntu MySQL 8.0 데이터 저장소 변경 (0) | 2022.09.16 |
[Linux] CentOS 에서 Apache 설치(컴파일) (0) | 2022.09.16 |
[Linux] Ubuntu 에서 Apache 설치(컴파일) (0) | 2022.09.13 |
[Linux&Window] Zabbix Server & Agent 설치하기 (0) | 2022.07.18 |