invictus
invictus

Reputation: 825

Delete ALL MySQL Database entries via Cronjob

I'm dumbing my Databases via Cronjob. Now I want to delete the whole content of a db before I restore the Backup.

I tried to add "--add-drop-database" to my dumb command but it changed nothing. I although can't add "--add-drop-table" because in the db where i want to restore my backup are more tables than in the backup file.

did someone know a solution?

thx in advance

Upvotes: 0

Views: 465

Answers (1)

AdrianBR
AdrianBR

Reputation: 2588

just use DROP DATABASE databasename; before import.

Upvotes: 1

Related Questions