메뉴 건너뛰기

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 으로 되어 있는 듯 하다.

 

    • 글자 크기
[linux] 용량 확보하기 (by suritam9) 카운터 만들기 소스 (by 박영식)

댓글 달기

박영식
2010.04.22 조회 3238
lispro06
2018.02.18 조회 803
lispro06
2018.04.29 조회 199
suritam9
2021.01.02 조회 130
첨부 (0)
위로