1. Home
  2. How to empty a MySQL database using SSH?

How to empty a MySQL database using SSH?

Step1: Go to cPanel > Databases section > MySQL Databases menu

Step2: Select the database user and make sure Drop and Create options are selected.

Step3: Login to the server via SSH and connect to MySQL using the command
mysql -uUsername -pPassword

Step4; To drop the database run this command:
drop database database_name

Was this article helpful?

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help for 24X7!
Click here to talk us!

Leave a Comment