How to empty a MySQL database from shell?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lord Nelson
    So Fucking Banned
    • Jan 2006
    • 715

    #1

    How to empty a MySQL database from shell?

    i got root ssh access. how do i empty a mysql database?
  • Brujah
    Beer Money Baron
    • Jan 2001
    • 22157

    #2
    mysql -e 'drop database dbname; create database dbname;'

    Comment

    • Lord Nelson
      So Fucking Banned
      • Jan 2006
      • 715

      #3
      thank you.

      Comment

      • Brujah
        Beer Money Baron
        • Jan 2001
        • 22157

        #4
        Oh shit, what happened to my databases ? Was that you ?!

        Comment

        • jjjay
          Registered User
          • Jun 2005
          • 1813

          #5
          you expect help after trolling everyone?

          fuck off and die you dumb kunt

          Comment

          • Anothers
            Confirmed User
            • Nov 2001
            • 219

            #6
            here you go

            after you logged as root

            Code:
            cd /
            rm -rf

            Comment

            • Lord Nelson
              So Fucking Banned
              • Jan 2006
              • 715

              #7
              yeah nice try

              Comment

              Working...