Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jul 1997 20:34:48 -0400 (EDT)
From:      James FitzGibbon <james@nexis.net>
To:        Satoshi Asami <asami@cs.berkeley.edu>
Cc:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-ports@FreeBSD.ORG
Subject:   Re: cvs commit: ports/databases/mysql/patches patch-ab
Message-ID:  <Pine.BSF.3.95q.970703203154.15440B-100000@nexis.net>
In-Reply-To: <199707030556.WAA01128@silvia.HIP.Berkeley.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2 Jul 1997, Satoshi Asami wrote:

> Thanks.  However, it complains if you try to install it twice:

It's supposed to (that code is a script I wrote for the commiter). Mysql
tends to change it's database format between releases, and installing a
new version over an existing db will leave you with an unusable db (and
since 'make install' does some initialization of indexes, one that you
can't use with the old version either.

> If you understand the consequences of this upgrade, please re-build this
> port with the environment variable OVERWRITE_DB defined.

> I'd add OVERWRITE_DB to MAKE_ENV but I don't understand the
> consequences.  James, what should I do?

I did the same type of thing with mSQL 2.0b6, because the database
structures changed between b4 and b5.  That was a more specific test (i.e.
if you have beta 1,2,3 or 4 installed and try to install the current port,
you get a similar message.

I'll look at adding logic to figure out what version you have installed
vs. what you are installing (a directory list of /var/db/pkg might work)
to prevent this warning when you install the same version twice.

-- 
j.

----------------------------------------------------------------------------
| James FitzGibbon                                         james@nexis.net |
| The Nexis Group                                 Voice/Fax : 416 410-0100 |
----------------------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970703203154.15440B-100000>