Help - Search - Members - Calendar
Full Version: mysql slow and log queries
The Planet Forums > Control Panels > cPanel/WHM
naiad
I got this info in Mysql Usage:

mysql CPU 5.43 MEM 135.00 0.0
Top Process %CPU 99.9 [mysqld]
Top Process %CPU 98.6 [mysqld]
Top Process %CPU 98.2 [mysqld]

So i decided to put this in /etc/my.cnf

[safe_mysqld]
log-slow-queries = /var/lib/mysql/mysql-slow-queries.log


but that log does not appear (after serveral days).
why ?

Anyway to optimize that ? it's the resource taking the more part of CPU and MEM... icon_razz.gif

thanx
naiad
Btw... yes... (of course) i restarted mysql icon_razz.gif
even whole system (because another problem)...
naiad
refreshing ... icon_razz.gif
jaume
Add it under the [mysqld] section cool.gif not under safe_mysqld
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.