Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

faxunil's avatar

tail -f ...mysql.log how to with latravl valet

Hi! I'm using API calls. I would like to see the executed sql commads. If I do it Linux server I'm using tail -f /var/log/mysql.log to see the last quersies on the fly.

How could I do it with Laravel Valet? thanks Gergely

0 likes
4 replies
faxunil's avatar

@Sinnbeck Thanks. Sorry. Yes indeed. I installed with brew the mysql db. All fine except I don't now how to monitor the queries during execution. In with blade project i can use debugbar bit via Vujs and API i don't know what would be thes best.

Sinnbeck's avatar

@faxunil Try running this in mysql to see where the logs are SHOW VARIABLES LIKE '%general_log%';

faxunil's avatar

@Sinnbeck Good idea :) general_log,OFF general_log_file,gergelymac-MacBook-Pro.log

Next question: where is the correct my.cnf located and how I could restart mysql :) Thanks

Please or to participate in this conversation.