⚙️백엔드/MySQL
MySQL - root 계정 비밀번호 초기화
Janger
2022. 9. 9. 09:55
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