• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Where do I find mysqld logs?

C

CloneCommander

Guest
Hi!

Could anyone tell me where i can find the logs of the MySQL Daemon?

I have SuSE Linux 9.2 with Plesk 7.5.4.

In the /etc.my.cnf is a log file configured, but it is empty...

Tibor
 
that was also my first idea - but there is no mysql log :(

the only mysqld.log I found is this:

/var/lib/mysql/mysqld.log

but it is emtpy...
 
Originally posted by CloneCommander
that was also my first idea - but there is no mysql log :(

the only mysqld.log I found is this:

/var/lib/mysql/mysqld.log

but it is emtpy...

What are you looking to find? /var/log/mysqld.log is a error log, if there are no errors then the file would be empty.
 
I have a website which loads ~ 5 sec, and during this time the mysqld has 99% cpu load

so I hope I could see what the site does during loading to fix it :)
 
Originally posted by CloneCommander
I have a website which loads ~ 5 sec, and during this time the mysqld has 99% cpu load

so I hope I could see what the site does during loading to fix it :)

You probably want to turn on the slow query log, then.

http://dev.mysql.com/doc/refman/4.1/en/slow-query-log.html

Basically you would edit /etc/my.cnf and in the [mysqld] section add a line:

log-slow-queries=/var/lib/mysql/slow.log
set-variable = long_query_time=3

This will log any queries taking longer than 3 seconds into the logfile specified. Odds are you have mysql out of the box and it is not tuned at all.

I found these sites to be decent references:

http://www.hackmysql.com/
http://jeremy.zawodny.com/mysql/
 
Back
Top