RDB/MySQL

mysqldump 옵션

세모데 2021. 11. 15. 10:51

--routines : func, procedure 이관

--triggers : trigger 이관

 

1. trigger/routines 포함 전체 이관

   mysqldump --routines --triggers  -u user -p  db명 

 

2. trigger/routines 만 이관

   mysqldump --routines --triggers --no-data  --no-create-db  --no-create-info -u user -p  db명

 

 

DB에서 func, procedure 정보 확인

select * from information_schema.routines;