DevOps/RDBMS(2)
-
[MariaDB] Grant / TimeZone / Trigger / Procedure Check
# User Authority Check SHOW GRANTS FOR 'test'@'%'; # Current Time Check SELECT NOW(); # Trigger Check SHOW TRIGGERS FROM test; # database name # Procedure Check SHOW PROCEDURE STATUS; # Specific Procedure Check SHOW PROCEDURE STATUS LIKE 'MAKE_AGW_PROPERTIES_MULTI'; --- Result... +----------+---------------------------+-----------+---------+---------------------+---------------------+-----------..
2023.11.08 -
[MariaDB] Backup Dump File with Procedure
MariaDB Version: 10.6.10 MariaDB Backup Dump File 생성시 default로 procedure는 백업되지 않는다. 따라서 --routines 옵션을 이용해서 procedure까지 함께 백업 해야 한다. Trigger: True(default) → option: --triggers Procedure: False(default) → option: --routines mysqldump -u [계정명] -p'[패스워드]' -h [MARIADB 주소] --routines --verbose [데이터베이스] > [백업받을 파일명] mysqldump -u root -p'admin12341234' -h $MARIADB_SVC_IP --routines --verbose chub_cms ..
2023.11.08