본문 바로가기

카테고리 없음

[mysql] Unknown column 'Password' in 'field list' 에 대해

mysql의 root 비밀번호를 변경할 때 update user set password=password('1234') where user='root'; 명령을 입력했는데 ERROR 1054 (42S22): Unknown column 'password' in 'field list' 오류가 발생했다면 user table에 password 필드가 존재하지 않기 때문이다. password 대신 authentication_string필드가 존재할 것이므로 update user set authentication_string=password('1234') where user='root'; 을 이용하면 된다. 링크