Query log for mySQL?

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Query log for mySQL?

    Is there a simple way to create a query log for mySQL? I've been
    asked^h^h^h^h^h told to add a layer of auditing on an existing
    application. It's unlikely that this audit log will ever be looked at so
    a listing of sql queries would probably suffice (it'll be big enough to
    impress anyway).


    Kevin Thorpe Guest

  2. Similar Questions and Discussions

    1. Is this a MySQL Query bug?
      I wrote a SQL script in MySQL Query, and saved it as script.sql, but when I executed it in windows command line "mysql -h localhost -u root...
    2. MySQL Query Cache Not Working: MySQL 5 / Windows XP
      Please excuse this post if you've already read it on mailing.database.mysql - i just discovered these other groups. future posts will be...
    3. MYSQL query: AND OR?
      This will probably sound stupid. How would you do a MYSQL query that was to evaluate if either condition A or B was meet? And if so, in what...
    4. MySql query help
      Hey, I am trying to retrive information from a database using the 'Mysql_fetch_assoc' function, but the problem is.. it is just one row of data...
    5. mysql/php query
      I have a question about (i think) joining. If I have a table in a database that has this info: key - name - favorite 1 - john - 2 2 - ...
  3. #2

    Default Re: Query log for mySQL?

    André Nęss wrote:
    > Kevin Thorpe:
    >
    >
    >>Is there a simple way to create a query log for mySQL? I've been
    >>asked^h^h^h^h^h told to add a layer of auditing on an existing
    >>application. It's unlikely that this audit log will ever be looked at so
    >>a listing of sql queries would probably suffice (it'll be big enough to
    >>impress anyway).
    >
    >
    > A quick search for "logging" in the MySQL manual found me this:
    > [url]http://www.mysql.com/doc/en/Query_log.html[/url]
    So why didn't I try that? I can only blame trying to do ten things at
    once and a major hangover. Shame it doesn't use syslog though.

    Kevin Thorpe Guest

  4. #3

    Default Re: Query log for mySQL?

    Kevin Thorpe:
    > Is there a simple way to create a query log for mySQL? I've been
    > asked^h^h^h^h^h told to add a layer of auditing on an existing
    > application. It's unlikely that this audit log will ever be looked at so
    > a listing of sql queries would probably suffice (it'll be big enough to
    > impress anyway).
    A quick search for "logging" in the MySQL manual found me this:
    [url]http://www.mysql.com/doc/en/Query_log.html[/url]

    André Nęss
    André Nęss Guest

  5. #4

    Default Re: Query log for mySQL?

    On Wed, 26 Nov 2003 10:28:46 +0000, Kevin Thorpe <kevin@pricetrak.com>
    wrote:
    >Is there a simple way to create a query log for mySQL? I've been
    >asked^h^h^h^h^h told to add a layer of auditing on an existing
    >application. It's unlikely that this audit log will ever be looked at so
    >a listing of sql queries would probably suffice (it'll be big enough to
    >impress anyway).
    >
    [url]http://www.mysql.com/documentation/mysql/bychapter/manual_MySQL_Database_Administration.html#Log_File s[/url]



    Tom Lynn
    --------
    [url]http://www.tomlynn.com[/url]
    tomlynn97@hotmail.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139