Controller setup

On the controller node, install the MySQL client and server packages, and the Python library.

# apt-get install python-mysqldb mysql-server
[Note]Note

When you install the server package, you are prompted for the root password for the database. Choose a strong password and remember it.

Edit /etc/mysql/my.cnf and set the bind-address to the internal IP address of the controller, to enable access from outside the controller node.

[mysqld]
...
bind-address            = 192.168.0.10

Restart the MySQL service to apply the changes:

# service mysql restart

You must delete the anonymous users that are created when the database is first started. Otherwise, database connection problems occur when you follow the instructions in this guide. To do this, use the mysql_secure_installation command. Note that if mysql_secure_installation fails you might need to use mysql_install_db first:

# mysql_install_db
# mysql_secure_installation

This command presents a number of options for you to secure your database installation. Respond yes to all prompts unless you have a good reason to do otherwise.

Log a bug against this page


loading table of contents...