C
C
coderisimo2015-12-11 12:18:49
linux
coderisimo, 2015-12-11 12:18:49

How to open /var/log/mysql/log-slow-queries.log?

I go by root.
The file exists. I try to open 'nano log-slow-queries.log' everything in the terminal freezes and does not respond to further actions. file size 312124. Little
experience, maybe I'm missing something obvious?
Thank you

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
Bojczuk, 2015-12-11
@coderisimo

tail -<количество строк с конца файла> /var/log/mysql/log-slow-queries.log

M
Maxim, 2015-12-11
Syomochkin @mak_sim

Have you tried the mysqldumpslow command?

R
repeat, 2015-12-11
@repeat

sudo cat /var/log/mysql/log-slow-queries.log | less

R
romy4, 2015-12-11
@romy4

Download it to your computer and open it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question