도도다다

MariaDB 10.4 이상에서의 비밀번호 변경

2021. 6. 2. 00:04 | 사소한 정보 글

update user set password = PASSWORD('p@assw0rd') where user ='root';

▲ 이 명령어가 오류나면서 안먹는다.

ERROR 1356 (HY000): View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them

 

해결

ALTER USER 'root'@'localhost' IDENTIFIED BY 'p@ssw0rd';​

▲ 210616 수정: localhost 호스트의 root 계정 비밀번호를 변경하는 구문