Backup database with stored procedures and functions
suggest changeBy default, stored procedures and functions are not included by mysqldump. Add --routines (or -R):
mysqldump -u username -p -R db_name > dump.sql
--routines does not preserve creation and modification timestamps. Before MySQL 8.0, when routine definitions lived in mysql.proc, dumping and reloading that table kept the timestamps. MySQL 8.0 removed mysql.proc.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents