values for the data directory (DATADIR) and owner of the MySQL files (USRPRF)
specified during the installation will be ignored, and the values determined from
the
If you want to change these parameters during a new install, you should
temporarily rename /etc/my.cnf, install MySQL using the new parameters
you want to use, and then merge your previous
settings with the new
• You must have a user profile with PASE with suitable privileges. The user should be within the
class, such as the
*SECOFR
your user profile.
• For network connections to MySQL, you must have TCP/IP enabled. You should also check the
following:
• Ensure that a name has defined for the system. Run the Configure TCP/IP (CFGTCP) command
and select option 12 (Change TCP/IP domain information) to display this setting. Make sure that a
value is listed in the Host name field.
• Make sure that the system has a loopback entry which represents the
• Ensure that the IP address of the IBM i machine is mapped correctly to the host name.
To install MySQL on i5/OS, follow these steps:
1. On the System i machine, create a save file that will be used to receive the downloaded installation
save file. The file should be located within the General Purpose Library (QGPL):
CRTSAVF FILE(QGPL/MYSQLINST) TESXT('MySQL Save file')
2. Download the MySQL installation save file in 32-bit (mysql-5.0.82-i5os-power-32bit.savf)
or 64-bit (mysql-5.0.82-i5os-power-64bit.savf) from
3. You need to FTP the downloaded
i server. You can do this through FTP using the following steps after logging in to the System i
machine:
ftp> bin
ftp> cd qgpl
ftp> put mysql-5.0.82-i5os-power.savf mysqlinst
4. Log into the System i server using a user in the
5. You need to restore the installation library stored in the
RSTLIB MYSQLINST DEV(*SAVF) SAVF(QGPL/MYSQLINST) MBROPT(*ALL) ALWOBJDIF(*ALL)
6. Once you have finished restoring the
installation are on the system by using the Display Library (DSPLIB) command:
DSPLIB LIB(MYSQLINST)
7. You need to execute the installation command, MYSQLINST/INSMYSQL. You can specify three
parameter settings during installation:
•
DIR('/QOpenSys/usr/local/mysql')
directory will be created if it does not already exist.
Installing MySQL on i5/OS
will be used instead.
/etc/my.cnf
/etc/my.cnf
user ID. You can use the
QSECOFR
.savf
Note
You can ignore the security changes-type message at the bottom of the
installation panel.
MYSQLINST
102
/etc/my.cnf
file that is created during installation.
WRKUSRPRF
MySQL
file directly into the
QGPL/MYSQLINST
class, such as the
*SECOFR
save file:
.savf
library, check that all the necessary objects for
sets the installation location for the MySQL files. The
configuration
command to check
or 127.0.0.1.
localhost
Downloads.
file on the System
user ID.
QSECOFR
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers