Let’s look at all the ways to change MySQL password, for root and other users: 모든하는 방법에 대해 살펴보겠 mysql 비밀 번호를 변경하려면, 루트 및 기타 사용자 :

In MySQL the default password is empty. mysql에서 기본 비밀 번호는 비어있습니다. This is inherently unsafe and should be immediately changed. 이것은 본질적으로 안전하지 않은, 즉시 변경해야합니다. Here is how you can change MySQL default root password : 여기에이 방법을 변경할 수있습니다 mysql 기본 루트 비밀 번호 :

 mysqladmin -u root password NEWPASSWORD mysqladmin - u 루트 암호를 newpassword 

Here is how you can change OLDPASSWORD to NEWPASSWORD 여기에이 방법을 변경하실 수있습니다 newpassword oldpassword

 mysqladmin -u LOGIN -p OLDPASSWORD NEWPASSWORD mysqladmin - u 로그인 - p oldpassword newpassword 

Replace LOGIN with your login name, OLDPASSWORD with your current password and NEWPASSWORD with the new password. 귀하의 로그인으로 로그인 대체 이름, 비밀 번호 및 newpassword oldpassword으로 귀하의 현재와 새 비밀 번호를합니다.