메뉴 건너뛰기

infra

[mysql] mysqld Ver 5.7.32-0ubuntu0.18.04.1 for Linux on x86_64 ((Ubuntu))

suritam92021.01.10 13:44조회 수 49댓글 0

    • 글자 크기

aws 에서 ubuntu 용 mysql 을 apt-get으로 설치하고 나서 기존 방식으로 패스워드 초기화가 안되는 경우 아래와 같이 해결한다.

 

# systemctl stop mysql

# sudo /usr/bin/mysqld_safe --skip-grant --skip-grant-tables &

# mysql -u root -p

[ENTER]

> UPDATE mysql.user set authentication_string=PASSWORD("패스워드"), password_expired='N', plugin='mysql_native_password' where User='root';

> FLUSH PRIVILEGES;

 

password 라는 컬럼이 없고, authentication_string 으로 되어 있는 듯 하다.

 

    • 글자 크기

댓글 달기

박영식
2011.04.29 조회 6045
박영식
2009.08.01 조회 5409
lispro06
2016.03.30 조회 4588
첨부 (0)
위로