You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.3 KiB

  1. #! /bin/sh /usr/share/dpatch/dpatch-run
  2. ## 50_mysql-test__db_test.dpatch by Christian Hammers <ch@debian.org>
  3. ##
  4. ## All lines beginning with `## DP:' are a description of the patch.
  5. ## DP: Patch 33_scripts__mysql_create_system_tables__no_test removes the
  6. ## DP: rights for anybody to connect to the test database but the test
  7. ## DP: suite depends on them.
  8. @DPATCH@
  9. --- old/mysql-test/mysql-test-run.pl 2009-06-16 14:24:09.000000000 +0200
  10. +++ new/mysql-test/mysql-test-run.pl 2009-07-04 00:03:34.000000000 +0200
  11. @@ -3578,6 +3578,11 @@ sub mysql_install_db {
  12. mtr_appendfile_to_file("$sql_dir/mysql_system_tables_data.sql",
  13. $bootstrap_sql_file);
  14. + mtr_tofile($bootstrap_sql_file, "-- Debian removed the default privileges on the 'test' database\n");
  15. + 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");
  16. + 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");
  17. +
  18. +
  19. # Add test data for timezone - this is just a subset, on a real
  20. # system these tables will be populated either by mysql_tzinfo_to_sql
  21. # or by downloading the timezone table package from our website