-
[MySQL 오류] ERROR 1064 (42000)트러블 슈팅(Trouble Shooting) 2024. 9. 4. 02:26
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 'root'' at line 1
grant all on DB명.* to root@localhost identified by 'root';
입력하였으나 ERROR 1064 (42000) 오류가 발생했다.
mySQL 8.0 버전 이상부터
계정 생성 + 사용자 권한 부여를 동시 진행이 불가능하다.
mysql> create user 계정ID@'%' identified by '비밀번호'; mysql> grant all privileges on DB이름.* to 계정ID@'%'; mysql> flush privileges;
8.0 버전 이상부터는 각각 명령어를
나누어 입력해야 해결이 가능하다.
'트러블 슈팅(Trouble Shooting)' 카테고리의 다른 글
[mac OS (Inter / Silicon)] redis.conf 경로 (0) 2024.06.11 [테스트 코드 오류] No tests found for given includes 오류 (0) 2024.06.01 [DB Connection] DBMS: PostgreSQL (no ver.)Case sensitivity: plain=mixed, delimited=exactThe connection attempt failed. 오류 (0) 2024.03.12 [IntelliJ] Mac 사용 시 클릭 안되는 이슈(마우스 커서) (0) 2022.09.03 [MySQL] 계정 비밀번호 변경 및 에러 해결방법 (0) 2022.09.02