SOURCES (MYSQL_5_0): mysql-system-users.patch - add also mysql_sys...

glen glen at pld-linux.org
Mon Apr 7 16:22:19 CEST 2008


Author: glen                         Date: Mon Apr  7 14:22:19 2008 GMT
Module: SOURCES                       Tag: MYSQL_5_0
---- Log message:
- add also mysql_sysadmin user with reload and shutdown priv

---- Files affected:
SOURCES:
   mysql-system-users.patch (1.3.2.1 -> 1.3.2.2) 

---- Diffs:

================================================================
Index: SOURCES/mysql-system-users.patch
diff -u SOURCES/mysql-system-users.patch:1.3.2.1 SOURCES/mysql-system-users.patch:1.3.2.2
--- SOURCES/mysql-system-users.patch:1.3.2.1	Mon Apr  7 16:04:06 2008
+++ SOURCES/mysql-system-users.patch	Mon Apr  7 16:22:14 2008
@@ -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;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/mysql-system-users.patch?r1=1.3.2.1&r2=1.3.2.2&f=u



More information about the pld-cvs-commit mailing list