티스토리 뷰
error log
[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 'IDENTIFIED BY 'password'' at line 1
daeuun 2023. 11. 9. 15:48ERROR 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 'IDENTIFIED BY 'password'' at line 1
mysql 8 버전 미만에서는 유저 생성, 권한 설정이 한번에 되지만
8 버전 이상에서는 불가능하다.
8 버전 미만
GRANT ALL PRIVILEGES ON team_dev.* TO user_dev@localhost IDENTIFIED BY 'password';
flush privileges;
8 버전 이상
create user user_dev@'%' identified by 'password';
grant all privileges on team_dev.* to user_dev@'%';
flush privileges;
반응형
'error log' 카테고리의 다른 글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- insertMany
- array
- MultipleBagFetchException
- QueryDSL
- Linux
- insertOne
- FetchJoin
- 스프링오류
- 추상클래스
- 장애 대응
- junit5
- Kotlin
- port
- Git
- java.lang.NullPointerException: Parameter specified as non-null is null
- Cannot construct instance of
- Java
- MongoDB
- JPA
- ?.let
- ChatGPT
- 배열
- Spring Security
- spring boot 3
- n+1
- checkout
- dto 클래스 생성자
- addFilterBefore
- 문자열계산기
- document insert
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함