Oracle 5.0 Reference Manual page 123

Table of Contents

Advertisement

DATADIR('/QOpenSys/usr/local/mysql/data')
will be used to store the database files and binary logs. The default setting is
usr/local/mysql/data. Note that if the installer detects an existing installation (due to the
existence of /etc/my.cnf), then the existing setting will be used instead of the default.
USRPRF(MYSQL)
created if it does not already exist.
Once you have set the appropriate parameters, you can begin the installation.
The installation copies all the necessary files into a directory matching the
value; sets the ownership on those files, sets up the MySQL environment and creates the MySQL
configuration file (in /etc/my.cnf) completing all the steps in a typical binary installation process
automatically. If this is a new installation of MySQL, or if the installer detects that this is a new
version (because the
also be created during installation.
Once the installation has been completed, you will get a notice advising you to set the password for
the root user. For more information,
8. Once the installation has completed, you can delete the installation file:
DLTLIB LIB(MYSQLINST)
Upgrading an existing MySQL instance
You need to execute the upgrade command, MYSQLINST/UPGMYSQL.
Note
You cannot use
MySQL (for example from 5.0 to 5.1). For information and advice on migrating
between major versions you can use the advice provided in
"Upgrading from MySQL 4.1 to
You must specify 6 parameters to perform an upgrade:
• DIR('/QOpenSys/usr/local/'): Sets the installation location for the MySQL files. The directory
will be created if it does not already exist. This is the directory that the MySQL server will be installed
into, inside a directory with a name matching the version and release. For example, if installing
MySQL 5.0.82 with the
local/mysql-5.0.82-i5os-power64
QOpenSys/usr/local/mysql.
• DATADIR('/QOpenSys/mysql/data'): Sets the location of the directory that will be upgraded.
• USRPRF('MYSQL'): Sets the user profile that will own the files that are installed. The profile will be
created if it does not already exist; if it is created as part of the upgrade process, it will be disabled
initially. You may wish to enable this user profile so that it can be used to start the MySQL server
later. It is best practice to use the one previously created during the first installation.
user'): Any user account in the current MySQL server with
MYSQLUSR('root
PASSWORD('root user
the upgrade starts the MySQL server to upgrade the tables and the password is need to be able to
shutdown the MySQL server.
Installing MySQL on i5/OS
sets the user profile that will own the files that are installed. The profile will be
Note
You should choose an appropriate user for using the MySQL server
installation. The user will be used whenever you need to do any
administration on the MySQL server.
file does not exist), then the initial core MySQL databases will
/etc/my.cnf
Section 2.18, "Postinstallation Setup and
MYSQLINST/UPGMYSQL
set to
DIR
/QOpenSys/usr/local/
and a symbolic link to this directory will be created in
password'): The password for the above account. This is necessary as
103
sets the location of the directory that
to upgrade between major versions of
5.0".
would result in
/QOpenSys/
configuration
DIR
Testing".
Section 2.19.1.2,
/QOpenSys/usr/
/
privileges.
SUPER

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents