코드네임 :
🕵️♂️ 웹 해킹 - MySQL 초기 패스워드 변경 본문
MySQL 설치하깅
➜ ~ git:(main) ✗ brew install mysql
➜ ~ git:(main) ✗ brew services start mysql
==> Successfully started `mysql` (label: homebrew.mxcl.mysql)
// 홈브루로 mysql 설치시 보통 비번 없어서 처음에 mysql -u root -p 할때 다른 비번 입력하면 오류남
➜ ~ git:(main) ✗ mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 9.3.0 Homebrew
Copyright (c) 2000, 2025, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
뭐여 옛날 강의라 ㅡㅡ 챗지피티 없엇으면 이걸 어케 알어요 ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
암튼! 굿
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'crehacktive';
Query OK, 0 rows affected (0.044 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected, 1 warning (0.012 sec)
mysql> exit
Bye
이제 mysql -u root -p입력하구 위 패스워드 입력하면 된다!!!
'🔐Security' 카테고리의 다른 글
🕵 웹 해킹 - 취약 환경 구축 & php 파일에서 나는 오류 해결😊 (0) | 2025.06.15 |
---|---|
🕵️♂️ 웹 해킹 - php.ini 파일내 magic_quotes_gpc 설정 < 이거 이미 사라졋대 (0) | 2025.06.11 |
🕵️♂️ 웹 해킹 - MAMP 설치 (+htdocs와 그 내부 파일 열기 내용) (0) | 2025.06.11 |
🕵️♂️ Web Hacking 스타뚜 (0) | 2025.06.09 |
Security - 플래그 찾기 (1) | 2025.05.11 |