GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   MySQL server question (https://gfy.com/showthread.php?t=482091)

fireorange 06-17-2005 05:27 PM

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 06-17-2005 05:29 PM

yeaasssss

sickbeatz 06-17-2005 05:30 PM

huh... KILLA KILLA THE DOPE MAKES TEH SKRILLA

psili 06-17-2005 05:35 PM

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*

fireorange 06-17-2005 05:37 PM

Quote:

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.

zagi 06-17-2005 05:41 PM

add to mysql option :

--enable-logging

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

psili 06-17-2005 05:44 PM

Quote:

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.

Quote:

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.

fireorange 06-17-2005 06:56 PM

Quote:

Originally Posted by zagi
add to mysql option :

--enable-logging

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

Thanks :thumbsup


All times are GMT -7. The time now is 12:43 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123