1. 비밀번호를 초기화하기위한 sql 파일 작성
ALTER USER 'root'@'localhost' IDENTIFIED BY '새로운 비밀번호';
2. cmd에서 작성한 sql 파일 실행
mysqld --init-file=C:\\init.sql
출처: https://phoenixnap.com/kb/how-to-reset-mysql-root-password-windows-linux?nowprocket=1
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
'Database' 카테고리의 다른 글
Aws Rds Mysql 생성 및 연결 (0) | 2021.05.30 |
---|
댓글