mysql root 비밀번호 설정
컨텐츠 정보
- 371 조회
- 2 댓글
- 0 추천
- 0 비추천
-
목록
본문
설치할때 비번을 설정 안했는데.
재설치하지 않고 다시 설정하려면 어떻게 해야 하나요?
지금 리니지혼자 하고있는데 게임 데이터 그대로 나두고 비번만 설정하고 싶어서요.
-
등록일 2025.01.09
-
등록일 2024.05.20
-
등록일 2024.05.20나비캣에서 지울때댓글 1
-
등록일 2024.04.19포트포워딩이 안돼요.댓글 3
관련자료
댓글 2

쭹이님의 댓글
cmd 관리자 실행후
mysql -uroot -p 엔터후 비밀번호
# 5.6 이하 > update user set password=password('new password') where user = 'root';
# 5.7 이상 > update user set authentication_string=password('new password') where user = 'root';
# 8.x 이상 > alter user 'root'@'localhost' identified with mysql_native_password by 'new password';
그리고 적용명령어
flush privileges;
cmd에서 마이에스큐얼 안되면 환경변수 없는거니
환경변수에서 path에 마이에스큐엘 bin경로까지 등록
100포인트 컴온
-이상-
mysql -uroot -p 엔터후 비밀번호
# 5.6 이하 > update user set password=password('new password') where user = 'root';
# 5.7 이상 > update user set authentication_string=password('new password') where user = 'root';
# 8.x 이상 > alter user 'root'@'localhost' identified with mysql_native_password by 'new password';
그리고 적용명령어
flush privileges;
cmd에서 마이에스큐얼 안되면 환경변수 없는거니
환경변수에서 path에 마이에스큐엘 bin경로까지 등록
100포인트 컴온
-이상-