0 like 0 dislike
553 views
in Education & Reference by (2.8k points) | 553 views

1 Answer

0 like 0 dislike
Best answer
in /etc/my.cnf

Under
[mysqld]

#New version (MySQL > 5)
general_log_file        = /var/log/mysql-query.log
general_log             = 1

#old version
log=/var/log/mysql-query.log
log-bin=mysql-bin

Do not forget to make file and set the permission 777 to this file mysql-query.log
and restart the mysql service by the following command
Service mysqld restart
by (2.8k points)

Related questions

0 like 0 dislike
1 answer
3 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Feb 17, 2014 in Education & Reference by Simmi (620 points) | 79 views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,225 questions
1,370 answers
559 comments
2,099 users