Transition Mysql 5.0 to 5.1 in main
Mathias Gug
mathiaz at ubuntu.com
Wed Aug 5 16:01:01 BST 2009
Hi Stephan,
On Wed, Aug 5, 2009 at 3:47 PM, Stephan Hermann<sh at sourcecode.de> wrote:
> On Wed, 5 Aug 2009 14:52:38 +0100
> Mathias Gug <mathiaz at ubuntu.com> wrote:
>> The current workaround is to check if the cluster engine is used in
>> the preinst script. If so the upgrade fails with a message suggesting
>> to remove the mysql-server package (which is an empty package
>> depending on mysql-server-5.0 for now - it will depend on
>> mysql-server-5.1 once mysql is move to main). Mysql-server-5.0 will be
>> demoted to universe (in karmic) and we'll try to get rid of it in the
>> next release (one blocker being the availability of mysql-cluster).
>
> Sounds reasonable...how do we check the usage of the mysql cluster
> engine?
In the mysql-server-5.1.preinst script:
# Abort if an NDB cluster is in use.
if egrep -q -r '^[^#]*ndb.connectstring' /etc/mysql/; then
db_fset mysql-server/no_upgrade_when_using_ndb seen false || true
db_input high mysql-server/no_upgrade_when_using_ndb || true
db_go
db_stop
exit 1
fi
>
> As there are at least three types of cluster nodes (management (which
> are not running a mysql instance), the sql nodes and the storage
> nodes), especially the first one is using a totally different
> configuration (not my.cnf)
>
Does the grep expression above cover all three use cases?
--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com
More information about the ubuntu-devel
mailing list