~percona-dev/percona-server/release-5.5.11-20.2-fix-bug-764138

« back to all changes in this revision

Viewing changes to build/debian/patches/50_mysql-test__db_test.patch

  • Committer: Ignacio Nin
  • Date: 2011-03-13 17:18:23 UTC
  • mfrom: (33.3.17 release-5.5.8-20)
  • Revision ID: ignacio.nin@percona.com-20110313171823-m06xs104nekulywb
Merge changes from release-5.5.8-20 to 5.5.9

Merge changes from the release branch of 5.5.8 to 5.5.9. These include
the HandlerSocket and UDF directories and the building scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
50_mysql-test__db_test.patch by Christian Hammers <ch@debian.org>
 
2
 
 
3
Patch 20_scripts__mysql_create_system_tables__no_test.patch removes the
 
4
rights for anybody to connect to the test database but the test
 
5
suite depends on them.
 
6
--- a/mysql-test/mysql-test-run.pl
 
7
+++ b/mysql-test/mysql-test-run.pl
 
8
@@ -3076,6 +3076,9 @@
 
9
     # for a production system
 
10
     mtr_appendfile_to_file("$sql_dir/mysql_system_tables_data.sql",
 
11
                           $bootstrap_sql_file);
 
12
+    
 
13
+    mtr_tofile($bootstrap_sql_file, "-- Debian removed the default privileges on the 'test' database\n");
 
14
+    mtr_tofile($bootstrap_sql_file, "INSERT INTO mysql.db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');\n");
 
15
 
 
16
     # Add test data for timezone - this is just a subset, on a real
 
17
     # system these tables will be populated either by mysql_tzinfo_to_sql