Backup database with stored procedures and functions

suggest change

By 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents