Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running mysqld in command line in non-daemon mode, and want to see logs right here, instead of in files:

mysql --port=1234 --bind-address=localhost --datadir=./data

It works, but logs go to files. I want to see them right here. Is it possible?

share|improve this question
    
I don't know if you can do that; can you tail -f the logfiles instead? –  TessellatingHeckler Aug 21 '11 at 23:28

1 Answer 1

up vote 1 down vote accepted

Start mysqld with the --general-log option, which it would cause it to display log messages on screen:

mysql --port=1234 --bind-address=localhost --datadir=./data --general-log
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.