#!/bin/sh # # Upgrade mysql databases # # Usage: mysql_db_upgrade [ --backup [ --force ] | --restore ] # # Options: # --backup directs the tool to perform a backup of all existing # databases in the /var/mysql directory. This option # is used prior to upgrading the Mac OS X Server. # --backup directs the tool to perform a restore of the database # backup into the /var/mysql directory. This option # is used after the Mac OS X Server 10.5 upgrade has # been installed. # --force (for --backup only) when executed from the command # line, causes the tool to ignore the automatic database # backup size limit and perform the backup on larger # databases. # # Description: # # This tool imports the existing mysql-4.x database into mysql-5.0. The # tool runs automatically after upgrade installations of Mac OS X # Server 10.5. The automatic upgrade will only execute for small # databases (50 MBytes or less). Upgrades of larger databases may # be enabled by executing the tool with the --force option. # # NOTE: Currently, this tool is not installed with any version of 10.5 # server. Inclusion of this tool in the build has been withheld # pending testing and verification of it's functionality. # # In the interim, upgrade instructions for 4.0/4.1 to 5.0 MySQL # versions can be found at: #