List:Commits« Previous MessageNext Message »
From:Joerg Bruehe Date:June 27 2006 6:48pm
Subject:bk commit into 5.0 tree (joerg:1.2196) BUG#18516
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of joerg. When joerg does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2196 06/06/27 18:48:27 joerg@stripped +1 -0
  Clean up all attempts to run "mysql_upgrade" on RPM upgrade,
  as done during fixing bug#18516 - this is not possible yet.

  support-files/mysql.spec.sh
    1.141 06/06/27 18:48:22 joerg@stripped +7 -11
    Clean up all attempts to run "mysql_upgrade" on RPM upgrade,
    as done during fixing bug#18516 - this is not possible yet.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	joerg
# Host:	trift2.
# Root:	/M50/bug20216-5.0

--- 1.140/support-files/mysql.spec.sh	2006-06-20 22:40:40 +02:00
+++ 1.141/support-files/mysql.spec.sh	2006-06-27 18:48:22 +02:00
@@ -484,17 +484,7 @@
 # Initiate databases if needed
 %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user}
 
-# Upgrade databases if needed
-# This must be done as database user "root", who should be password-protected,
-# but this password is not available here.
-# So ensure the server is isolated as much as possible, and start it so that
-# passwords are not checked.
-# See the related change in the start script "/etc/init.d/mysql".
-chmod 700 $mysql_datadir
-%{_sysconfdir}/init.d/mysql start --skip-networking --skip-grant-tables
-%{_bindir}/mysql_upgrade
-%{_sysconfdir}/init.d/mysql stop  --skip-networking --skip-grant-tables
-chmod 755 $mysql_datadir
+# Upgrade databases if needed would go here - but it cannot be automated yet.
 
 # Change permissions again to fix any new files.
 chown -R %{mysqld_user}:%{mysqld_group} $mysql_datadir
@@ -732,6 +722,12 @@
 # itself - note that they must be ordered by date (important when
 # merging BK trees)
 %changelog 
+* Tue Jun 27 2006 Joerg Bruehe <joerg@stripped>
+
+- We cannot run "mysql_upgrade" during RPM upgrade yet,
+  this needs more preparations.
+  Undo the attempts of Apr 28 and Jun 20.
+
 * Tue Jun 20 2006 Joerg Bruehe <joerg@stripped>
 
 - To run "mysql_upgrade", we need a running server;
Thread
bk commit into 5.0 tree (joerg:1.2196) BUG#18516Joerg Bruehe27 Jun