]> git.pld-linux.org Git - packages/mysql.git/blob - mysql-system-users.patch
- mysql_logrotate user renamed to mysql_sysadmin (with reload && shutdown priviledges)
[packages/mysql.git] / mysql-system-users.patch
1 diff -ur mysql-5.1.22-rc.org/scripts/mysql_system_tables_data.sql mysql-5.1.22-rc/scripts/mysql_system_tables_data.sql
2 --- mysql-5.1.22-rc.org/scripts/mysql_system_tables_data.sql    2007-09-24 12:29:43.000000000 +0200
3 +++ mysql-5.1.22-rc/scripts/mysql_system_tables_data.sql        2007-11-24 20:22:08.360937978 +0100
4 @@ -2,20 +2,14 @@
5  -- The inital data for system tables of MySQL Server
6  --
7  
8 --- Fill "db" table with default grants for anyone to
9 --- access database 'test' and 'test_%' if "db" table didn't exist
10 -CREATE TEMPORARY TABLE tmp_db LIKE db;
11 -INSERT INTO tmp_db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');
12 -INSERT INTO tmp_db VALUES ('%','test\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');
13 -INSERT INTO db SELECT * FROM tmp_db WHERE @had_db_table=0;
14 -DROP TABLE tmp_db;
15 -
16 -
17 --- Fill "users" table with default users allowing root access
18 +-- Fill "users" table with default users allowing mysql access
19  -- from local machine if "users" table didn't exist before
20  CREATE TEMPORARY TABLE tmp_user LIKE user;
21 -INSERT INTO tmp_user VALUES ('localhost','root','','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','Y','Y','','','','',0,0,0,0);
22 -REPLACE INTO tmp_user VALUES (@@hostname,'root','','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','Y','Y','','','','',0,0,0,0);
23 -REPLACE INTO tmp_user VALUES ('127.0.0.1','root','','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','Y','Y','','','','',0,0,0,0);
24 +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','Y','Y','','','','',0,0,0,0);
25 +REPLACE INTO tmp_user VALUES (@@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','Y','Y','','','','',0,0,0,0);
26 +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','Y','Y','','','','',0,0,0,0);
27 +INSERT INTO tmp_user VALUES ('localhost','mysql_sysadmin','','N','N','N','N','N','N','Y','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0);
28 +REPLACE INTO tmp_user VALUES (@@hostname,'mysql_sysadmin','','N','N','N','N','N','N','Y','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0);
29 +REPLACE INTO tmp_user VALUES ('127.0.0.1','mysql_sysadmin','','N','N','N','N','N','N','Y','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','','','','',0,0,0,0);
30  INSERT INTO user SELECT * FROM tmp_user WHERE @had_user_table=0;
31  DROP TABLE tmp_user;
This page took 0.214378 seconds and 4 git commands to generate.