Displaying 1 result from an estimated 1 matches for "get_mysql_option".
2009 Sep 12
1
mysql query logging
...or compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
max_allowed_packet=2MB
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
log-query=/var/log/mysql-query.log
empty
and then I added to /etc/init.d/mysqld
get_mysql_option mysqld_safe log "/var/log/mysqld-query.log"
querylogfile="$result"
-and-
start(){
touch "$querylogfile"
chown mysql:mysql "$querylogfile"
chmod 0640 "$querylogfile"
but nothing is logged.
Can someone toss me a bone here?
C...