mysql root 비밀번호 설정
스틱
2
129
0
0
04.13 15:18
설치할때 비번을 설정 안했는데.
재설치하지 않고 다시 설정하려면 어떻게 해야 하나요?
지금 리니지혼자 하고있는데 게임 데이터 그대로 나두고 비번만 설정하고 싶어서요.
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포인트 컴온
-이상-