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?

link|improve this question

75% accept rate
I don't know if you can do that; can you tail -f the logfiles instead? – TessellatingHeckler Aug 21 '11 at 23:28
feedback

1 Answer

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
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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