How to delete a Database in MySQL

Open terminal and go to mySQL server install dir and run the following command to export database dump

/usr/local/mysql-8.0.30-macos12-x86_64/bin/mysql -u root -p

“/usr/local/mysql-8.0.30-macos12-x86_64/bin/” Path/location where MySql server is installed
“mysqldump” – command for database export
“-u root” root user
“-p” is it for password but will ask later

Show list of Database in MYSQL
 SHOW DATABASES;

command to delete a Database ->  DROP DATABASE tutorial_database;

5 thoughts on “How to delete a Database in MySQL”

  1. [2838]baji9 Official Login | অ্যাপ ডাউনলোড ও অনলাইন ক্যাসিনো বোনাস,baji9-এ যোগ দিয়ে সেরা অনলাইন ক্যাসিনো বোনাস বুঝে নিন। বিকাশ দিয়ে সহজে লেনদেন এবং স্লট গেমের নিয়ম শিখে আজই খেলা শুরু করুন। visit: baji9

Leave a Comment

Your email address will not be published. Required fields are marked *