2024. 2. 18. 18:04

alter user 'root'@'localhost' identified with mysql_native_password by 'new_password_you_want';

 

new_password_you_want 부분에

 

입력할 비밀번호를 넣고 엔터를 친다

 

나와서 다시 접속할 때 입력한 비밀번호를 입력하여 접속한다

 

mysql -u root -p