[packages/mysql/MYSQL_5_0] use mysql_sysadmin for slave status checks as well

glen glen at pld-linux.org
Thu Sep 24 15:37:04 CEST 2015


commit 938607e2419c87a176fa3686b61ab7b59c8b99b8
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Sep 24 16:34:33 2015 +0300

    use mysql_sysadmin for slave status checks as well
    
    merge [mysql] and [mysqladmin] to just [client] section which both programs read.

 mysql-system-users.patch |  2 +-
 mysqld.conf              | 11 ++---------
 2 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/mysql-system-users.patch b/mysql-system-users.patch
index d8bff1a..8465e93 100644
--- a/mysql-system-users.patch
+++ b/mysql-system-users.patch
@@ -23,7 +23,7 @@
 +INSERT INTO tmp_user VALUES ('localhost','mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);
 +REPLACE INTO tmp_user SELECT @current_hostname,'mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0 FROM dual WHERE LOWER( @current_hostname) != 'localhost';
 +REPLACE INTO tmp_user VALUES ('127.0.0.1','mysql','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);
-+INSERT INTO tmp_user set Host='localhost',User='mysql_sysadmin',Password='',Reload_priv='Y',Shutdown_priv='Y';
++INSERT INTO tmp_user set Host='localhost',User='mysql_sysadmin',Password='',Reload_priv='Y',Shutdown_priv='Y',Repl_client_priv='Y';
  INSERT INTO tmp_user (host,user) VALUES ('localhost','');
  INSERT INTO tmp_user (host,user) SELECT @current_hostname,'' FROM dual WHERE LOWER(@current_hostname ) != 'localhost';
  INSERT INTO user SELECT * FROM tmp_user WHERE @had_user_table=0;
diff --git a/mysqld.conf b/mysqld.conf
index 8fb97f4..2176050 100644
--- a/mysqld.conf
+++ b/mysqld.conf
@@ -3,7 +3,6 @@
 #
 # One can use all long options that the mysqld supports.
 # Run mysqld with --help to get a whole list of available options
-# $Id$
 
 # This section must be the first!
 [mysqld]
@@ -232,13 +231,7 @@ innodb_log_buffer_size=1M
 
 #set-variable      = bdb_max_lock=1000
 
-
-# used for logs rotation
-[mysqladmin]
+# used for logs rotation or status check for replications
+[client]
 user        = mysql_sysadmin
 password    =
-
-# used by initscript to fetch slave status
-[mysql]
-user        = mysql
-password    =
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mysql.git/commitdiff/6a1e15b8fa332e7f5a044b49fbbf039291c1ef39



More information about the pld-cvs-commit mailing list