반응형
오랜만에 mysql 을 사용하면서 개발용 유저를 만들고 권한 설정해주는데
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
에러를 마주해서 확인해보니 문법이 바뀌었다.
기존
grant all privileges on \[데이터베이스이름\].\[테이블 이름 /또는 테이블 전체(\*)\] to \[유저이름\]@\['유저의 호스트 정보'\] identified by \['비밀번호'\];
Mysql8
grant all privileges on \[데이터베이스이름\].\[테이블 이름 /또는 테이블 전체(\*)\] to \[유저이름\]@\['유저의 호스트 정보'\] ;
비밀번호 입력안해도됨.
'TIL' 카테고리의 다른 글
prisma - update error : An operation failed because it depends on one or more records that were required but not found. Record to update not found. (0) | 2023.01.05 |
---|---|
알고리즘 강의 정리 (간략) (0) | 2023.01.03 |
가상메모리 - page/segmentation (0) | 2022.12.13 |
20210521:: font-face / div 둥굴게 만들기 / div 투명하게 만들기 (0) | 2021.05.22 |
[pieces] 스터디 해왔던 기록들 (0) | 2021.05.12 |