mysql.patch 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. --- scripts/mysql_install_db.sh.dist Wed Jan 29 12:29:21 2003
  2. +++ scripts/mysql_install_db.sh Wed Feb 5 09:56:12 2003
  3. @@ -138,9 +138,8 @@
  4. then
  5. if test ! -d $ldata; then mkdir $ldata; chmod 700 $ldata ; fi
  6. if test ! -d $ldata/mysql; then mkdir $ldata/mysql; chmod 700 $ldata/mysql ; fi
  7. - if test ! -d $ldata/test; then mkdir $ldata/test; chmod 700 $ldata/test ; fi
  8. if test -w / -a ! -z "$user"; then
  9. - chown $user $ldata $ldata/mysql $ldata/test;
  10. + chown $user $ldata $ldata/mysql
  11. fi
  12. fi
  13. @@ -178,8 +177,6 @@
  14. c_d="$c_d )"
  15. c_d="$c_d comment='Database privileges';"
  16. - i_d="INSERT INTO db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y');
  17. - INSERT INTO db VALUES ('%','test\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y');"
  18. fi
  19. if test ! -f $mdata/host.frm
  20. @@ -250,10 +247,7 @@
  21. INSERT INTO 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','','','','',0,0,0);
  22. REPLACE INTO 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','','','','',0,0,0);
  23. - REPLACE INTO 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','','','','',0,0,0);
  24. -
  25. - INSERT INTO user (host,user) values ('localhost','');
  26. - INSERT INTO user (host,user) values ('$hostname','');"
  27. + REPLACE INTO 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','','','','',0,0,0);"
  28. fi
  29. if test ! -f $mdata/func.frm
  30. @@ -351,10 +345,7 @@
  31. if test "$IN_RPM" -eq 0
  32. then
  33. echo "You can start the MySQL daemon with:"
  34. - echo "cd @prefix@ ; $bindir/mysqld_safe &"
  35. - echo
  36. - echo "You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:"
  37. - echo "cd sql-bench ; perl run-all-tests"
  38. + echo "@l_prefix@/etc/rc mysql start"
  39. echo
  40. fi
  41. echo "Please report any problems with the @scriptdir@/mysqlbug script!"
  42. --- scripts/msql2mysql.sh.dist Tue Feb 11 09:50:29 2003
  43. +++ scripts/msql2mysql.sh Tue Feb 11 09:53:08 2003
  44. @@ -13,4 +13,4 @@
  45. # described in the License. Among other things, the License requires that
  46. # the copyright notice and this notice be preserved on all copies.
  47. -@bindir@/replace msqlConnect mysql_connect msqlListDBs mysql_list_dbs msqlNumRows mysql_num_rows msqlFetchRow mysql_fetch_row msqlFetchField mysql_fetch_field msqlFreeResult mysql_free_result msqlListFields mysql_list_fields msqlListTables mysql_list_tables msqlErrMsg 'mysql_error(mysql)' msqlStoreResult mysql_store_result msqlQuery mysql_query msqlField mysql_field msqlSelect mysql_select msqlSelectDB mysql_select_db msqlNumFields mysql_num_fields msqlClose mysql_close msqlDataSeek mysql_data_seek m_field MYSQL_FIELD m_result MYSQL_RES m_row MYSQL_ROW msql mysql mSQL mySQL MSQL MYSQL msqlCreateDB mysql_create_db msqlDropDB mysql_drop_db msqlFieldSeek mysql_field_seek -- $*
  48. +@libexecdir@/replace msqlConnect mysql_connect msqlListDBs mysql_list_dbs msqlNumRows mysql_num_rows msqlFetchRow mysql_fetch_row msqlFetchField mysql_fetch_field msqlFreeResult mysql_free_result msqlListFields mysql_list_fields msqlListTables mysql_list_tables msqlErrMsg 'mysql_error(mysql)' msqlStoreResult mysql_store_result msqlQuery mysql_query msqlField mysql_field msqlSelect mysql_select msqlSelectDB mysql_select_db msqlNumFields mysql_num_fields msqlClose mysql_close msqlDataSeek mysql_data_seek m_field MYSQL_FIELD m_result MYSQL_RES m_row MYSQL_ROW msql mysql mSQL mySQL MSQL MYSQL msqlCreateDB mysql_create_db msqlDropDB mysql_drop_db msqlFieldSeek mysql_field_seek -- $*
  49. --- mysys/default.c.dist Wed Jan 29 12:29:20 2003
  50. +++ mysys/default.c Wed Feb 5 09:58:40 2003
  51. @@ -49,7 +49,7 @@
  52. #elif defined(__NETWARE__)
  53. "sys:/etc/",
  54. #else
  55. -"/etc/",
  56. +"@l_prefix@/etc/mysql/",
  57. #endif
  58. #ifdef DATADIR
  59. DATADIR,
  60. --- config.h.in.orig 2004-12-09 12:21:30.331530371 +0100
  61. +++ config.h.in 2004-12-09 12:21:33.941576868 +0100
  62. @@ -628,6 +628,9 @@
  63. /* Define to 1 if you have the `setupterm' function. */
  64. #undef HAVE_SETUPTERM
  65. +/* Define to 1 if you have the <signal.h> header file. */
  66. +#undef HAVE_SIGNAL_H
  67. +
  68. /* Define to 1 if you have the `sighold' function. */
  69. #undef HAVE_SIGHOLD
  70. --- include/my_pthread.h.orig 2004-10-28 02:48:34.000000000 +0200
  71. +++ include/my_pthread.h 2004-12-09 12:23:37.673149500 +0100
  72. @@ -229,7 +229,6 @@
  73. #ifdef HAVE_rts_threads
  74. #define sigwait org_sigwait
  75. -#include <signal.h>
  76. #undef sigwait
  77. #endif
  78. #undef _REENTRANT /* Fix if _REENTRANT is in pthread.h */
  79. @@ -240,6 +239,9 @@
  80. #ifdef HAVE_THR_SETCONCURRENCY
  81. #include <thread.h> /* Probably solaris */
  82. #endif
  83. +#ifdef HAVE_SIGNAL_H
  84. +#include <signal.h>
  85. +#endif
  86. #ifdef HAVE_SCHED_H
  87. #include <sched.h>
  88. #endif
  89. --- configure.in.orig 2004-10-28 02:48:38.000000000 +0200
  90. +++ configure.in 2004-12-09 12:26:09.585078188 +0100
  91. @@ -735,7 +735,7 @@
  92. AC_HEADER_STDC
  93. AC_HEADER_SYS_WAIT
  94. AC_CHECK_HEADERS(fcntl.h float.h floatingpoint.h ieeefp.h limits.h \
  95. - memory.h pwd.h select.h \
  96. + memory.h pwd.h select.h signal.h \
  97. stdlib.h stddef.h \
  98. strings.h string.h synch.h sys/mman.h sys/socket.h netinet/in.h arpa/inet.h \
  99. sys/timeb.h sys/types.h sys/un.h sys/vadvise.h sys/wait.h term.h \
  100. --- configure.orig 2004-10-28 02:48:59.000000000 +0200
  101. +++ configure 2004-12-09 12:22:45.602487633 +0100
  102. @@ -21408,7 +21408,7 @@
  103. for ac_header in fcntl.h float.h floatingpoint.h ieeefp.h limits.h \
  104. - memory.h pwd.h select.h \
  105. + memory.h pwd.h select.h signal.h \
  106. stdlib.h stddef.h \
  107. strings.h string.h synch.h sys/mman.h sys/socket.h netinet/in.h arpa/inet.h \
  108. sys/timeb.h sys/types.h sys/un.h sys/vadvise.h sys/wait.h term.h \