At times when debugging ORMs lke hibernate we may need to know what queries are actually hitting the db. MySql gives an easy way to do this. Add the below in the my.cnf file
- log=/var/log/mysql/general.log
- place the above in the section [mysqld] and
- restart the mysql: /etc/init.d/mysqld restart;
No comments:
Post a Comment