Breaking News: Grepper is joining Read the official announcement!
Check it out

delete all mysql databases

Xenophobic Xenomorph answered on March 29, 2023 Popularity 8/10 Helpfulness 3/10


More Related Answers

  • linux remove mysql server
  • remove mysql ubuntu
  • delete database mysql
  • linux remove mysql
  • mysql remove ubuntu
  • remove all records from table mysql
  • how to delete database in mysql phpmyadmin
  • remove mysql
  • mysql delete all except
  • delete all content in table mysql
  • drop database mysql
  • delete database mssql
  • mysql drop database
  • mysql drop all tables
  • hot to delete mysql
  • delete database mysql command
  • Deleting in MySQL
  • delete query in mysql
  • mysql delete database
  • mysql drop all triggers database
  • remove all data from table mysql
  • mysql database drop
  • how to delete database in mysql
  • query to delete a database in mysql
  • delete an item from a database with sqlalchemy
  • mysql remove database
  • mysql undo delete

  • delete all mysql databases


    mysql -uroot -p -e "show databases" | grep -v Database | grep -v mysql| grep -v information_schema| gawk '{print "drop database `" $1 "`;select sleep(0.1);"}' | mysql -uroot -p

    Popularity 8/10 Helpfulness 3/10 Language sql
    Tags: mysql sql
    Link to this answer
    Share Copy Link
    Contributed on Mar 29 2023
    Xenophobic Xenomorph
    0 Answers  Avg Quality 2/10


    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.