Re: Debugging/monitoring traffic to MySQL
| From: | Edward Marczak | Date: | Fri, 19 Jul 2002 02:39:30 +0000 |
| Subject: | Re: Debugging/monitoring traffic to MySQL | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-20651@lists.php.net to get a copy of this message | ||
On 7/18/02 8:30 PM, "Clive Bruton" <clive@indx.co.uk> wrote:
> Is there a way to see the traffic between PHP and MySQL, ie see the
> statements/raw data that is sent between the two processes.
>
> I've tried running the MYSQL client, but there doesn't seem to be any
> obvious command to do this. Some other terminal process?
>
> I'm running MacOS X.
If you fire up mysql with the --log option, you can tail the log and watch
everything that's going on in your database. Otherwise, if you want to make
life difficult, do a packet trace.
--
Ed Marczak
marczak@usa.net