본문 바로가기
⚙️백엔드/MySQL

MySQL - root 계정 비밀번호 초기화

by Janger 2022. 9. 9.
728x90
반응형
명령어
sudo mysql -uroot -p

우선 수퍼 유저 권한으로 root 로그인

 

ALTER USER 'root'@'localhost' IDENTIFIED BY 'NewPassword';

 

 

출처: 

https://phoenixnap.com/kb/how-to-reset-mysql-root-password-windows-linux

 

How to Change MySQL Root Password in Linux or Windows

Learn How to Reset or Change MySQL Root Password in Linux or Windows. Forget the root userpassword for your MySQL database? Get started with this easy tutorial!

phoenixnap.com

 

728x90
반응형