Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- postfix 설치
- 윈도우 mod_security2
- group_concat 구분자
- wsl2 우분투에 docker 설치
- apple push notification service (apns) is changing
- bootstrap modal
- thumbnail 클래스
- usb 삭제
- 숫자 3자리(천단위) 마다 콤마 찍기
- (using password: YES)" when trying to connect
- httpd.conf 보안 설정
- php 배열제거
- javascript
- 비밀번호검증정규식
- 아파치 웹 서버의 정보 숨기기
- bootstrap
- modsecurity 설치
- VS Code 서버설치
- PHP 정규식 예제
- php 이미지 url 검증 함수
- mod_security2 설치
- 윈도우 환경 아파치 mod_security2 설치
- mariadb upgrade
- sha-2 root
- html pdf 변환
- 유튜브 플레이 리스트 저장
- 파라미터 & 오류
- 비밀번호정규식
- 자바스크립트비밀번호검증
- usb efi 시스템 파티션 삭제
Archives
- Today
- Total
투덜이 개발자
mysql 프로시저,함수 생성 권한 주기 본문
반응형
mysql 프로시저,함수 생성 권한 주기
1. 프로시저 및 함수 생성 권한 확인
SHOW VARIABLES LIKE '%log_bin_trust_function_creators%';

mysql 디폴트 값은 OFF 상태 입니다.
2. 프로시저 및 함수 생성 권한 주기
SET GLOBAL log_bin_trust_function_creators = 1;

위와 같이 쿼리를 실행하면 Value 값이 ON 으로 변경이 됩니다.
이제 일반 사용자들도 함수 및 프로시저를 생성 할 수가 있습니다.
시스템이 재부팅 되더라도 영구적으로 시작되도록 설정하려면 /etc/my.cnf 에 다음을 추가한다.
[mysqld]
# enable for use function in procedure
log_bin_trust_function_creators = TRUE
1. 생성된 함수나 프로시저를 확인
SELECT * FROM information_schema.ROUTINES;
2. function 확인
show function status where db = 'db 명';
3. function 수정
show create function Function명;
4. procedure 확인
show procedure status where db = 'db 명';
5. procedure 수정
show create procedure procedure 명;
6. 버전 확인
SELECT version()
반응형
'DataBase > MySQL' 카테고리의 다른 글
| CentOS 7 MariaDB Install (0) | 2022.11.09 |
|---|---|
| [Mysql] Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline. (0) | 2022.09.26 |
| MySQL이 my.cnf 파일 위치 확인 (0) | 2022.09.13 |
| [MySQL] JOIN 걸어서 업데이트(UPDATE) 하기 (0) | 2022.07.14 |
| [Mysql] 데이터 베이스 삭제 에러 (0) | 2022.07.07 |