Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To enable full Log Query add the following to your my.cnf:</p> <pre><code>log=/var/log/mysqldquery.log </code></pre> <p>The above will log all queries to the log file.</p> <p>Don't forgot to restart mysql service after making changes in my.cnf file.</p> <p>Example output from actions via SequelPro (mac client):</p> <pre><code>090721 11:06:45 51 Query ALTER TABLE `test` ADD `name` varchar(10) DEFAULT NULL 51 Query SHOW COLUMNS FROM `test` 51 Query SHOW INDEX FROM `test` 090721 11:06:57 51 Query SHOW COLUMNS FROM `test` 51 Query UPDATE `test` SET `id`='1', `name`='test' WHERE `id` = '1' AND `name` IS NULL LIMIT 1 51 Query SELECT * FROM `test` LIMIT 0,100 51 Query SELECT COUNT(1) FROM `test` 090721 11:07:00 51 Query UPDATE `test` SET `id`='2', `name`='test' WHERE `id` = '2' AND `name` IS NULL LIMIT 1 51 Query SELECT * FROM `test` LIMIT 0,100 51 Query SELECT COUNT(1) FROM `test` </code></pre> <p>On *NIX based systems you can use grep to start</p> <pre><code>grep 'SELECT\|INSERT\|UPDATE' querylog.log </code></pre> <p>Or get more tricky and start doing things like:</p> <pre><code>grep 'SELECT\|INSERT\|UPDATE' querylog.log | awk '{$1="";$2="";print}' </code></pre> <p>This would give you something like this, not perfect but closer:</p> <pre><code> 51 Query UPDATE `test` SET `id`='2', `name`='test' WHERE `id` = '2' AND `name` IS NULL LIMIT 1 SELECT * FROM `test` LIMIT 0,100 SELECT COUNT(1) FROM `test` 51 Query INSERT INTO `test` (`id`,`name`) VALUES ('3','testing') SELECT * FROM `test` LIMIT 0,100 SELECT COUNT(1) FROM `test` </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload