MySQL Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mr Pheer
    So Fucking Banned
    • Dec 2002
    • 22083

    #1

    MySQL Question

    How do i find out where my databases are stored on my server? Using FreeBSD
  • frankfortuna
    Confirmed User
    • Aug 2002
    • 1504

    #2
    /usr/bin/mysql --user=$sqluser --password=$sqlpass -e "show
    databases;"

    Remove $variables and insert your real user / pass.

    Comment

    • juicylinks
      So Fucking Banned
      • Apr 2001
      • 122992

      #3
      Hi MR pHeer

      Comment

      • Mr Pheer
        So Fucking Banned
        • Dec 2002
        • 22083

        #4
        Originally posted by frankfortuna
        /usr/bin/mysql --user=$sqluser --password=$sqlpass -e "show
        databases;"

        Remove $variables and insert your real user / pass.
        Thanks Mr ForTuna

        Hi Juicy

        Comment

        • fuzebox
          making it rain
          • Oct 2003
          • 22352

          #5
          In the mysql client type "show variables", and scroll up until you find "datadir"

          That's the path to where your databases are physically stored...

          Unless you were asking about something different?

          Comment

          • Simon-interaid
            Confirmed User
            • Sep 2002
            • 814

            #6
            you can do

            ps -axf | grep mysqld


            in the results it'll show you where its looking for the data.

            Easiest way id say
            we buy domains with typin traffic. icq me 8566256

            Comment

            • Steve
              Confirmed User
              • Feb 2001
              • 6894

              #7
              useful shit to know

              Comment

              • wimpy
                Confirmed User
                • Jan 2003
                • 607

                #8
                I want "MySQL for Dummies"
                Fyodor Dostoyevsky wrote: "Every man has reminiscences which he would not tell to everyone but only his friends. He has other matters in his mind which he would not reveal even to his friends, but only to himself, and that in secret. But there are other things which a man is afraid to tell even to himself, and every decent man has a number of such things stored away in his mind."

                icq 8243657

                Comment

                • Naughty
                  Confirmed User
                  • Jul 2001
                  • 6487

                  #9
                  Originally posted by wimpy
                  I want "MySQL for Dummies"
                  MySQL for Dummies
                  seks.ai for sale - ping me

                  Comment

                  • Illicit
                    wtf ?
                    • Dec 2003
                    • 11895

                    #10
                    Originally posted by wimpy
                    I want "MySQL for Dummies"

                    where in RI are you ?
                    Insert Sig Here

                    Comment

                    Working...