1. Home
  2. Knowledge Base
  3. 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

Need Support?
Can't find the answer you're looking for?
Contact Support