메뉴 건너뛰기

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

 

    • 글자 크기
Tomcat 서버, Apache method 설정 적용 후기 (by suritam9) [aiexe] 명령 프롬프트를 사용해 취약점 진단이 가능할까? (by suritam9)

댓글 달기

suritam9
2024.03.10 조회 1
suritam9
2024.03.12 조회 1
suritam9
2024.03.11 조회 4
suritam9
2022.10.26 조회 22
suritam9
2022.07.10 조회 79
suritam9
2021.01.02 조회 130
첨부 (0)
위로