Team5-be01-Final-Project / .github

https://github.com/beyond-sw-camp/beyond-sw-camp-be01_last-dance
3 stars 0 forks source link

[정보] 마리아DB 이벤트 스케쥴링 #48

Open jsmin6330 opened 6 months ago

jsmin6330 commented 6 months ago

특정 유저에게 특정 데이터베이스의 EVENT 권한을 주는 명령어

GRANT EVENT ON BPS.* TO '유저 아이디'@'%';
jsmin6330 commented 6 months ago

글로벌 시스템 변수를 설정하는 데에는 SUPER 권한이 요구되기 때문에 아래 명령어는 클라우드 내부로 접속해서 슈퍼 유저가 직접 사용.

SET GLOBAL event_scheduler = ON;
jsmin6330 commented 6 months ago

시스템 변수 event_scheduler를 설정하려면 SUPER 권한이 필요하기 때문에 유저에게 슈퍼 권한을 주었습니다.

GRANT SUPER ON *.* TO '유저아이디'@'%';
FLUSH PRIVILEGES;