Atom feed of this document
  
 

 Controller setup

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

# yum install mysql mysql-server MySQL-python

The MySQL configuration requires some changes to work with OpenStack.

  • Edit the /etc/my.cnf file:

    1. Under the [mysqld] section, set the bind-address key to the management IP address of the controller node to enable access by other nodes via the management network:

      [mysqld]
      ...
      bind-address = 10.0.0.11
    2. Under the [mysqld] section, set the following keys to enable InnoDB, UTF-8 character set, and UTF-8 collation by default:

      [mysqld]
      ...
      default-storage-engine = innodb
      collation-server = utf8_general_ci
      init-connect = 'SET NAMES utf8'
      character-set-server = utf8

Start the MySQL database server and set it to start automatically when the system boots:

# service mysqld start
# chkconfig mysqld on

Finally, you should set a root password for your MySQL database. The OpenStack programs that set up databases and tables prompt you for this password if it is set.

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

If you have not already set a root database password, press ENTER when you are prompted for the password. 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.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page

loading table of contents...