MySQL server question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fireorange
    Confirmed User
    • Jan 2005
    • 1648

    #1

    MySQL server question

    I got a PHP script running, I wanna know what SQL commands it executes on a certain DB on the MySQL server to figure out that the algo its ranking the thumbs.

    Any MySQL option to log every single SQL query?
  • sixxxthsense
    Confirmed User
    • Aug 2004
    • 2421

    #2
    yeaasssss

    Comment

    • sickbeatz
      The Hustler
      • Feb 2005
      • 4993

      #3
      huh... KILLA KILLA THE DOPE MAKES TEH SKRILLA

      GalleryFeeder.com

      Comment

      • psili
        Confirmed User
        • Apr 2003
        • 5526

        #4
        not sure if this will do what you want, by the

        mysqladmin extended-status

        will show what's running in the mySQL environment.

        actually, there's a bunch of options with "mysqladmin" from the command line to see what's going on at a certain point.

        about automating it, i'd guess modify the PHP script and log what it's doing.

        *shrug*
        Your post count means nothing.

        Comment

        • fireorange
          Confirmed User
          • Jan 2005
          • 1648

          #5
          Originally posted by psili
          about automating it, i'd guess modify the PHP script and log what it's doing.
          I wish, it's a paid script compiled in Zend Optimizer, etc.

          Comment

          • zagi
            Confirmed User
            • Jan 2004
            • 1238

            #6
            add to mysql option :

            --enable-logging

            this will create hostname.log in your datadir with all mysql queries
            Managed US/NL Hosting [ [Reality Check Network ]
            Dell XEON Servers + 1/2/3 TB Packages ICQ: 4-930-562

            Comment

            • psili
              Confirmed User
              • Apr 2003
              • 5526

              #7
              Originally posted by fireorange
              I wish, it's a paid script compiled in Zend Optimizer, etc.
              yea, we have a couple of those fuckers bought for work and it sucks to debug.

              Originally posted by zagi
              add to mysql option :

              --enable-logging

              this will create hostname.log in your datadir with all mysql queries
              you gotta love when a truly solid answer comes along.
              Your post count means nothing.

              Comment

              • fireorange
                Confirmed User
                • Jan 2005
                • 1648

                #8
                Originally posted by zagi
                add to mysql option :

                --enable-logging

                this will create hostname.log in your datadir with all mysql queries
                Thanks

                Comment

                Working...