Oracle 5.0 Reference Manual page 124

Table of Contents

Advertisement

CURINST('path to previous
upgraded. For example an installation in
local/mysql-5.1.30-i5os-power64. Failure to specify this option may result in corruption of
your existing data files.
For example:
MYSQLINST/UPGMYSQL DIR('/QOpenSys/usr/local/') DATADIR('/QOpenSys/mysql/data') »
USERPRF(MYSQL) MYSQLUSR('root') PASSWORD('root')
You should receive a Program Message indicating
error message if there is a problem.You can view the upgrade programs progression and the error in
the text file
upgrade.log
To start MySQL:
1. Log into the System i server using the user profile create or specified during installation. By default,
this is MYSQL.
Note
You should start
has the id=0 (the equivalent of the standard Unix
not use a user with this ID then the system will be unable to change the
user when executing
mysqld
directory and the execution will fail.
2. Enter the PASE environment using
3. Start the MySQL server by changing to the installation directory and running mysqld_safe,
specifying the user name used to install the server. The installer conveniently installs a symbolic
link to the installation directory (mysql-5.0.42-i5os-power-32bit) as /opt/mysql/mysql:
> cd /opt/mysql/mysql
> bin/mysqld_safe --user=mysql &
You should see a message similar to the following:
Starting mysqld daemon with databases »
from /opt/mysql/mysql-enterprise-5.0.42-i5os-power-32bit/data
If you are having problems starting MySQL server, see
the MySQL
Server".
To stop MySQL:
1. Log into the System i server using the user profile create or specified during installation. By default,
this is MYSQL.
2. Enter the PASE environment using
3. Stop the MySQL server by changing into the installation directory and running mysqladmin,
specifying the user name used to install the server:
> cd /opt/mysql/mysql
> bin/mysqladmin -u root shutdown
If the session that you started and stopped MySQL are the same, you may get the log output from
mysqld:
STOPPING server from pid file »
/opt/mysql/mysql-enterprise-5.0.42-i5os-power-32bit/data/I5DBX.RCHLAND.IBM.COM.pid
070718 10:34:20
mysqld ended
Installing MySQL on i5/OS
install'): The full path to the installation that is being
/QOpenSys/usr/local/
UPGRADE SUCCESSFUL!
in the installation directory.
mysqld_safe
mysqld
may be unable to read the files located within the MySQL data
call
qp2term.
call
qp2term.
104
will be
/QOpenSys/usr/
CURINST('/QOpenSys/usr/local/mysql-5.1.30-i5os-power6
upon completion or an
using a user that in the PASE environment
user). If you do
root
as set using
option. If this happens,
--user
Section 2.18.1.3, "Starting and Troubleshooting

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents