On Thu, Apr 05, 2007 at 04:24:50AM +0900, ASARI Takashi wrote:
> Daniel Macks wrote:
> :
> > Looking at the PostInst, I see it's doing:
> >
> >  # create initial database
> >  # it is safe to call mysql_install_db even if a db is already present
> >  /sw/bin/mysql_install_db --user=mysql
> >
> > Digging into that script, apparently it doesn't realize I already have
> > a mysql database installed, so it tries to set up a new one, which is
> > different from the old.
> 
> So looks like calling /sw/bin/mysql_install_db has been no longer safe.
> I'm going to delete these lines, or to make them conditional,
> like calling mysql_install_db only if datadir is empty.
> 
> By the way, for upgrade users, there is /sw/bin/mysql_upgrade{,_shell}.
> Maybe I should also add such lines into PostInstScript.

At least in my initial tests, mysql_upgrade fails if mysql is already
upgraded. That is, running it once upgrades, running it again is an
error. Maybe:

  echo "The following may give an error, which you can ignore..."
  /sw/bin/mysql_upgrade || :

so that a failure of that script doesn't cause PostInst to crash? But
even with that echo"", it's still uncomfortable to see a mile of error
messages.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to