]> git.pld-linux.org Git - packages/mysql.git/commit
use mysqld.conf when fetching slave status
authorElan Ruusamäe <glen@delfi.ee>
Mon, 22 Apr 2013 10:23:25 +0000 (13:23 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 22 Apr 2013 10:25:01 +0000 (13:25 +0300)
commited3eec1bf2920f057c1571ccacb21dd2cdf9209d
tree89350599d129fbae103795830f53a4ac5077e89d
parenta0bb3b350c5eef51fef3194072fad56d40423ed9
use mysqld.conf when fetching slave status

we need -u mysql to get super privileges, this is the simpliest way (and
works by default in pld)

service mysql status gives such error
ERROR 1227 (42000) at line 1: Access denied; you need the SUPER,REPLICATION CLIENT privilege for this operation

which works fine from commandline if you have ~/.my.cnf specifing user=mysql:
$ mysql -S /var/lib/mysql/mysqldb/mysql.sock -e show slave status\G

fine tuning could add special user for this purpose only
mysql.init
mysqld.conf
This page took 0.043792 seconds and 4 git commands to generate.