Re: MySQL not restarted after portupgrade



On 3-Nov-08, at 1:16 AM, Yuri Pankov wrote:

Apache and Courier IMAP are just not stopped during deinstall stage
(IIRC). You can use AFTERINSTALL in /usr/local/etc/pkgtools.conf to
start MySQL after upgrade.

Thanks! There's even an example using mysql-server in the file. My AFTERINSTALL is now:

AFTERINSTALL = {
# Re-enable the X wrapper
'x11-servers/XFree86-4-Server' => sprintf(
'cd %s/bin && if [ -x Xwrapper-4 ]; then ln -sf Xwrapper-4 X; fi',
x11base()),

# Automatically start MySQL server
'databases/mysql51-server' => proc { |origin|
cmd_enable_rc(origin) + ';' + cmd_start_rc(origin)
},
}

--Andrew
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Best way to upgrade mysql-server?
    ... make deinstall in mysql-server 3.23 ... make install clean in mysql-server 4.0.27 ... Started the mysql server again ... doing an upgrade on a production server? ...
    (freebsd-questions)
  • Re: upgrading mysql
    ... >before upgrading since the upgrade needs to overwrite the databases. ... >and then restart the mysql server using mysqld_safe ...
    (freebsd-questions)
  • Big problems with mysql_num_rows - PLEASE HELP!
    ... MySQL Server is version 4.1.7 (I know I should upgrade, ... Server is Linux ... The largest database in the ... I'm happy to upgrade to 5.x if I know for sure it will ...
    (comp.lang.php)
  • Re: upgrading mysql-server
    ... On 09/06/06 Michael P. Soulier said: ... And it shuts down my mysql server, but does not start it again. ... Should the upgrade not handle this? ...
    (freebsd-questions)
  • 4.3 to 4.9 upgrade woes
    ... Okay, I've finally upgraded my 4.3 box to 4.9 but while most things appear ... The mySQL server won't start anymore ... I probably missed something during the upgrade. ... To unsubscribe, ...
    (freebsd-questions)