Procedure
- Configure your MySQL 4.1 database:
- Run the MySQL database post-installation step:
./bin/mysql_install_db --user=mysql
- Check access rights. The file owner must be the user mysql:
cd /var/lib/mysql/mysql
chown mysql *
- Start the MySQL server. In case of problems, check /var/lib/mysql/mysqld.log file
for errors. You can use the startup script typically provided in /etc/rc.d:
mysqld_safe --user=mysql &
Tip: The mysqld.log file is not
in the /var/lib/mysql directory for all Linux distributions.
- Secure the installation by removing the anonymous user,
and setting the root password (xyz):
mysql -u root
delete from mysql.user where user='';
update mysql.user set password=password('xyz');
flush privileges;
quit;
- Require a password for connecting to the database:
mysql -u root -pxyz
- (Optional) Allow remote access from another
computer identified by its IP:
grant all on *.* to 'root'@'192.168...' identified by 'xyz';
flush privileges;
- Create a new database for Tivoli® Provisioning Manager for OS Deployment
create database tpmfosd character set utf8;
- Decompress and extract the content of the Tivoli Provisioning Manager for OS Deployment tar.gz file
in /usr/local. A directory named tpmfos is
created.
- Set up your database gateway.
dbgw.jar is
a Java™ implementation of the
TCP-to-ODBC database gateway, using JDBC instead of ODBC for database
access.
Note: To use ODBC for MySQL database access,
ensure you download MySQL Connector/ODBC 3.51.
- Download and extract MySQL Connector/J, which you can
find at http://dev.mysql.com/downloads/connector/j/3.1.html. The mysql-connector-java-3.1.8-bin.jar file
is now in the Connector/J directory.
- Create a symbolic link in the Tivoli Provisioning Manager for OS Deployment installation
directory:
cd /usr/local/tpmfos
ln -s XXX/mysql-connector-java-3.1.8-bin.jar mysql.jar
- In another terminal, check the database
connectivity:
telnet 2020
use mysql://127.0.0.1/tpmfosd?useUnicode=true&characterEncoding=UTF-8,
root,<password>
If you are using MySQL Connector 5.1,
you can check the database connectivity as follows:"use mysql://127.0.0.1/tpmfosd?useUnicode=true&characterEncoding=
UTF-8&useOldAliasMetadataBehavior=true";
- Run ./setup in the /usr/local/tpmfos directory.
- Follow the setup program instructions.
Results
./setup can
be used with parameters. Using parameters when launching ./setup allows
you to provide mandatory and optional parameters in the command line
and to run the setup process without user interaction, that is silently.