Answer the question
In order to leave comments, you need to log in
How to delete contents of MySQL database?
Hello everyone, I need to delete ALL CONTENT from the database on linux, while I want to leave the database itself, what command can I do this with?
Answer the question
In order to leave comments, you need to log in
The simplest thing is to make a backup of only the structure, without data ( mysqldump --no-data , https://dev.mysql.com/doc/refman/8.0/en/mysqldump.... ), delete the database, restore. Of course, don't forget to back up procedures/triggers/etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question