[packages/percona-server/v5.0.x: 59/202] - add also mysql_sysadmin user with reload and shutdown priv

glen glen at pld-linux.org
Wed Oct 21 16:13:59 CEST 2015


commit f85fd04bb90e8b6513b0d5ea2b66a0739d4b013f
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Apr 7 14:22:14 2008 +0000

    - add also mysql_sysadmin user with reload and shutdown priv
    
    Changed files:
        mysql-system-users.patch -> 1.3.2.2

 mysql-system-users.patch | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/mysql-system-users.patch b/mysql-system-users.patch
index 923264b..05761de 100644
--- a/mysql-system-users.patch
+++ b/mysql-system-users.patch
@@ -1,6 +1,6 @@
 --- mysql-5.0.56/scripts/mysql_system_tables_data.sql~	2008-04-07 16:50:17.000000000 +0300
 +++ mysql-5.0.56/scripts/mysql_system_tables_data.sql	2008-04-07 16:51:47.088186136 +0300
-@@ -7,22 +7,12 @@
+@@ -7,22 +7,13 @@
  -- containing "@current_hostname" are filtered out by mysql_install_db.
  set @current_hostname= @@hostname;
  
@@ -23,6 +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 VALUES (@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);
 +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 (host,user) VALUES ('localhost','');
  INSERT INTO tmp_user (host,user) VALUES (@current_hostname,'');
  INSERT INTO user SELECT * FROM tmp_user WHERE @had_user_table=0;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/percona-server.git/commitdiff/431f68fe79a66d5dfdd53f2655709e6c925fbc22



More information about the pld-cvs-commit mailing list