Port number in XAMPP can be easily changed by following this 5 steps:
step 1: stop the xampp server, if it is already running.(to avoid collapse)
step 2: run your notepad as administrator and open this 3 files:
1) xampp/properties.ini
2) xampp/mysql/bin/my.ini
3) xampp/php/php.ini
step 3: Press ctrl+F and replace all 3306 ( port number ) with 3308(it can be anything like 3307 or 3309) .( Use ctrl+F so that you don’t miss out any 3306 port unchanged. Otherwise it won’t work)
step 4 : save all the files.
step 5 : Now restart your apache and mysql. It will work :)
총 3개의 파일의 포트 3306인 포트를 본인이 사용할 mysql 포트로 변경해주면 된다.
위의 xampp/properties.ini는 간혹 xampp-control.ini로 패치된 경우도 있으니 이점 참고하길 바란다.
반응형
'코딩 | 개념 정리 > PHP' 카테고리의 다른 글
[PHP] XAMPP MySQL 접속 에러 해결 (0) | 2022.06.19 |
---|---|
[PHP] 서버 시간 변경 (2) | 2022.06.12 |
[PHP] VS Code에서 HTML 자동 줄 정렬(PHP코드에서) (0) | 2022.06.05 |
[PHP] VS Code에서 Live server로 PHP reload 설정하기 (2) | 2022.06.01 |
[스크랩] [PHP] 조건문 if, switch, ? 연산자 사용법 (0) | 2021.01.28 |