Database last modified

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Shawn McKenzie

    #1

    Database last modified

    Can someone help me with a query to get the date/time that a database was
    last modified?

    I looked at the SHOW command but there was no mention of this.

    TIA,
    Shawn


  • gnu valued customer

    #2
    Re: Database last modified


    "Shawn McKenzie" <nospam@mckenzi es.net> wrote in message news:V4kJc.4345 4$mY2.550@fe1.t exas.rr.com...[color=blue]
    > Can someone help me with a query to get the date/time that a database was
    > last modified?
    >
    > I looked at the SHOW command but there was no mention of this.
    >
    > TIA,
    > Shawn
    >
    > [/color]

    try:
    Show Table Status from <db-name>

    hth,
    Mark

    Comment

    • Justo

      #3
      Re: Database last modified

      "Shawn McKenzie" <nospam@mckenzi es.net> wrote in message news:<V4kJc.434 54$mY2.550@fe1. texas.rr.com>.. .[color=blue]
      > Can someone help me with a query to get the date/time that a database was
      > last modified?
      >
      > I looked at the SHOW command but there was no mention of this.
      >
      > TIA,
      > Shawn[/color]

      Perhaps the Show table status from 'db_name'. It returns the status of
      each table in the given database, with created and modified dates for
      each table. Please let me know if you find the way to do it, i am
      interested as well.

      Comment

      • Shawn McKenzie

        #4
        Re: Database last modified

        Doesn't seem possible, which is crap. SHOW TABLE STATUS seems to just
        return the info for some random table, only 1. I'm using PHP funcs to
        retrieve this.

        -Shawn


        "Justo" <angeljusto@yah oo.es> wrote in message
        news:d3f75fa.04 07150126.a0e134 b@posting.googl e.com...[color=blue]
        > "Shawn McKenzie" <nospam@mckenzi es.net> wrote in message[/color]
        news:<V4kJc.434 54$mY2.550@fe1. texas.rr.com>.. .[color=blue][color=green]
        > > Can someone help me with a query to get the date/time that a database[/color][/color]
        was[color=blue][color=green]
        > > last modified?
        > >
        > > I looked at the SHOW command but there was no mention of this.
        > >
        > > TIA,
        > > Shawn[/color]
        >
        > Perhaps the Show table status from 'db_name'. It returns the status of
        > each table in the given database, with created and modified dates for
        > each table. Please let me know if you find the way to do it, i am
        > interested as well.[/color]


        Comment

        • steve

          #5
          Re: Re: Database last modified

          "Shawn McKenzie" wrote:[color=blue]
          > Doesn’t seem possible, which is crap. SHOW TABLE STATUS seems
          > to just
          > return the info for some random table, only 1. I’m using PHP
          > funcs to
          > retrieve this.
          >
          > -Shawn
          >
          >
          > "Justo" <angeljusto@yah oo.es> wrote in message
          > news:d3f75fa.04 07150126.a0e134 b@posting.googl e.com...[color=green]
          > > "Shawn McKenzie" <nospam@mckenzi es.net> wrote in message[/color]
          > news:<V4kJc.434 54$mY2.550@fe1. texas.rr.com>.. .[color=green][color=darkred]
          > > > Can someone help me with a query to get the date/time that a[/color][/color]
          > database
          > was[color=green][color=darkred]
          > > > last modified?
          > > >
          > > > I looked at the SHOW command but there was no mention of[/color][/color]
          > this.[color=green][color=darkred]
          > > >
          > > > TIA,
          > > > Shawn[/color]
          > >
          > > Perhaps the Show table status from ’db_name’. It[/color]
          > returns the status of[color=green]
          > > each table in the given database, with created and modified dates[/color]
          > for[color=green]
          > > each table. Please let me know if you find the way to do it, i am
          > > interested as well.</font>[/color][/color]

          http://dev.mysql.com/doc/mysql/en/SH...LE_STATUS.html
          show table status like ’%’
          would return the last update time (among other data returned) of all
          the tables in your db. Then you simply parse the result set using
          php, and grab the dates, and figure out the last date. Needs a bit of
          php skill to parse the date, but the rest should be easy.

          --
          http://www.dbForumz.com/ This article was posted by author's request
          Articles individually checked for conformance to usenet standards
          Topic URL: http://www.dbForumz.com/mySQL-Databa...ict129616.html
          Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=435203

          Comment

          • Shawn McKenzie

            #6
            Re: Database last modified

            Doesn't seem possible, which is crap. SHOW TABLE STATUS seems to just
            return the info for some random table, only 1. I'm using PHP funcs to
            retrieve this.

            -Shawn


            "Justo" <angeljusto@yah oo.es> wrote in message
            news:d3f75fa.04 07150126.a0e134 b@posting.googl e.com...[color=blue]
            > "Shawn McKenzie" <nospam@mckenzi es.net> wrote in message[/color]
            news:<V4kJc.434 54$mY2.550@fe1. texas.rr.com>.. .[color=blue][color=green]
            > > Can someone help me with a query to get the date/time that a database[/color][/color]
            was[color=blue][color=green]
            > > last modified?
            > >
            > > I looked at the SHOW command but there was no mention of this.
            > >
            > > TIA,
            > > Shawn[/color]
            >
            > Perhaps the Show table status from 'db_name'. It returns the status of
            > each table in the given database, with created and modified dates for
            > each table. Please let me know if you find the way to do it, i am
            > interested as well.[/color]


            Comment

            • steve

              #7
              Re: Re: Database last modified

              "Shawn McKenzie" wrote:[color=blue]
              > Doesn’t seem possible, which is crap. SHOW TABLE STATUS seems
              > to just
              > return the info for some random table, only 1. I’m using PHP
              > funcs to
              > retrieve this.
              >
              > -Shawn
              >
              >
              > "Justo" <angeljusto@yah oo.es> wrote in message
              > news:d3f75fa.04 07150126.a0e134 b@posting.googl e.com...[color=green]
              > > "Shawn McKenzie" <nospam@mckenzi es.net> wrote in message[/color]
              > news:<V4kJc.434 54$mY2.550@fe1. texas.rr.com>.. .[color=green][color=darkred]
              > > > Can someone help me with a query to get the date/time that a[/color][/color]
              > database
              > was[color=green][color=darkred]
              > > > last modified?
              > > >
              > > > I looked at the SHOW command but there was no mention of[/color][/color]
              > this.[color=green][color=darkred]
              > > >
              > > > TIA,
              > > > Shawn[/color]
              > >
              > > Perhaps the Show table status from ’db_name’. It[/color]
              > returns the status of[color=green]
              > > each table in the given database, with created and modified dates[/color]
              > for[color=green]
              > > each table. Please let me know if you find the way to do it, i am
              > > interested as well.</font>[/color][/color]

              http://dev.mysql.com/doc/mysql/en/SH...LE_STATUS.html
              show table status like ’%’
              would return the last update time (among other data returned) of all
              the tables in your db. Then you simply parse the result set using
              php, and grab the dates, and figure out the last date. Needs a bit of
              php skill to parse the date, but the rest should be easy.

              --
              http://www.dbForumz.com/ This article was posted by author's request
              Articles individually checked for conformance to usenet standards
              Topic URL: http://www.dbForumz.com/mySQL-Databa...ict129616.html
              Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=435203

              Comment

              • Shawn McKenzie

                #8
                Re: Re: Database last modified

                I'll give it a try, but I am using this to decide whether to use a cached
                page or not. Kinda defeats the purpose if there is a lot of db querying and
                then data parsing/comparison.

                Thanks!
                -Shawn

                "steve" <UseLinkToEmail @dbForumz.com> wrote in message
                news:xhcKc.1458 3$Mh.10141@cycl ops.nntpserver. com...[color=blue]
                > "Shawn McKenzie" wrote:[color=green]
                > > Doesn't seem possible, which is crap. SHOW TABLE STATUS seems
                > > to just
                > > return the info for some random table, only 1. I'm using PHP
                > > funcs to
                > > retrieve this.
                > >
                > > -Shawn
                > >
                > >
                > > "Justo" <angeljusto@yah oo.es> wrote in message
                > > news:d3f75fa.04 07150126.a0e134 b@posting.googl e.com...[color=darkred]
                > > > "Shawn McKenzie" <nospam@mckenzi es.net> wrote in message[/color]
                > > news:<V4kJc.434 54$mY2.550@fe1. texas.rr.com>.. .[color=darkred]
                > > > > Can someone help me with a query to get the date/time that a[/color]
                > > database
                > > was[color=darkred]
                > > > > last modified?
                > > > >
                > > > > I looked at the SHOW command but there was no mention of[/color]
                > > this.[color=darkred]
                > > > >
                > > > > TIA,
                > > > > Shawn
                > > >
                > > > Perhaps the Show table status from 'db_name'. It[/color]
                > > returns the status of[color=darkred]
                > > > each table in the given database, with created and modified dates[/color]
                > > for[color=darkred]
                > > > each table. Please let me know if you find the way to do it, i am
                > > > interested as well.</font>[/color][/color]
                >
                > http://dev.mysql.com/doc/mysql/en/SH...LE_STATUS.html
                > show table status like '%'
                > would return the last update time (among other data returned) of all
                > the tables in your db. Then you simply parse the result set using
                > php, and grab the dates, and figure out the last date. Needs a bit of
                > php skill to parse the date, but the rest should be easy.
                >
                > --
                > http://www.dbForumz.com/ This article was posted by author's request
                > Articles individually checked for conformance to usenet standards
                > Topic URL:[/color]
                http://www.dbForumz.com/mySQL-Databa...ict129616.html[color=blue]
                > Visit Topic URL to contact author (reg. req'd). Report abuse:[/color]



                Comment

                • Shawn McKenzie

                  #9
                  Re: Re: Database last modified

                  I'll give it a try, but I am using this to decide whether to use a cached
                  page or not. Kinda defeats the purpose if there is a lot of db querying and
                  then data parsing/comparison.

                  Thanks!
                  -Shawn

                  "steve" <UseLinkToEmail @dbForumz.com> wrote in message
                  news:xhcKc.1458 3$Mh.10141@cycl ops.nntpserver. com...[color=blue]
                  > "Shawn McKenzie" wrote:[color=green]
                  > > Doesn't seem possible, which is crap. SHOW TABLE STATUS seems
                  > > to just
                  > > return the info for some random table, only 1. I'm using PHP
                  > > funcs to
                  > > retrieve this.
                  > >
                  > > -Shawn
                  > >
                  > >
                  > > "Justo" <angeljusto@yah oo.es> wrote in message
                  > > news:d3f75fa.04 07150126.a0e134 b@posting.googl e.com...[color=darkred]
                  > > > "Shawn McKenzie" <nospam@mckenzi es.net> wrote in message[/color]
                  > > news:<V4kJc.434 54$mY2.550@fe1. texas.rr.com>.. .[color=darkred]
                  > > > > Can someone help me with a query to get the date/time that a[/color]
                  > > database
                  > > was[color=darkred]
                  > > > > last modified?
                  > > > >
                  > > > > I looked at the SHOW command but there was no mention of[/color]
                  > > this.[color=darkred]
                  > > > >
                  > > > > TIA,
                  > > > > Shawn
                  > > >
                  > > > Perhaps the Show table status from 'db_name'. It[/color]
                  > > returns the status of[color=darkred]
                  > > > each table in the given database, with created and modified dates[/color]
                  > > for[color=darkred]
                  > > > each table. Please let me know if you find the way to do it, i am
                  > > > interested as well.</font>[/color][/color]
                  >
                  > http://dev.mysql.com/doc/mysql/en/SH...LE_STATUS.html
                  > show table status like '%'
                  > would return the last update time (among other data returned) of all
                  > the tables in your db. Then you simply parse the result set using
                  > php, and grab the dates, and figure out the last date. Needs a bit of
                  > php skill to parse the date, but the rest should be easy.
                  >
                  > --
                  > http://www.dbForumz.com/ This article was posted by author's request
                  > Articles individually checked for conformance to usenet standards
                  > Topic URL:[/color]
                  http://www.dbForumz.com/mySQL-Databa...ict129616.html[color=blue]
                  > Visit Topic URL to contact author (reg. req'd). Report abuse:[/color]



                  Comment

                  Working...