Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.