티스토리 뷰
MySQL 8.0 패스워드 변경 방법
인터넷에서 보고 수없이 따라했지요.
SET PASSWORD FOR 'root'@'localhost' = PASSWORD("TOOR");
안돼요.
update user set password=PASSWORD("TOOR") where User='root';
안돼요.
update user set authentication_string
=PASSWORD("TOOR") where User='root';
안돼요.
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near '("TOO
R") WHERE User='root'' at line 1
항상 위와 같은 에러 문구만 나와요. 노트북 부셔버릴뻔했어요. 고구마 100개 목구녕에 막혀서 죽는줄..
결국 찾았습니다.
This function was removed in MySQL 8.0.11
mysql에서 root 패스워드를 지워버린다.
UPDATE mysql.user SET authentication_string=null WHERE User='root';
FLUSH PRIVILEGES;
exit;
터미널에서가서 다시 접속한다.
mysql -u root
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'yourpasswd';
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
mysql> exit;
Bye
전과정은 이래요.
'프로그래밍 > C#' 카테고리의 다른 글
c# 오늘이 일년중 몇번째 날인지 구하기 (0) | 2018.11.11 |
---|---|
c# datetimepicker로 요일 알아보기 (0) | 2018.11.11 |
MySQL/MariaDB 계정 생성 (0) | 2018.11.03 |
MySQL 윈도우10에 설치부터 기본사용법 예제 (0) | 2018.10.28 |
C# string IndexOf 특정문자의 위치를 찾는 방법 (0) | 2018.10.28 |
댓글