Rate This Document
Findability
Accuracy
Completeness
Readability

Creating the Neutron Database

Neutron provides networking function for other service components, such as Nova. It also provides APIs to users. It supports equipment and technologies from different network providers.

Perform the following operations on controller nodes.

  1. Connect to the MySQL database as the root user.
    1
    mysql -u root -p
    
  2. Create a Neutron database.
    1
    CREATE DATABASE neutron;
    
  3. Grant proper access permission and replace PASSWORD with the password of the user neutron to access the database.
    1
    2
    3
    4
    GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' \
    IDENTIFIED BY 'PASSWORD';
    GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' \
    IDENTIFIED BY 'PASSWORD';
    

    Replace PASSWORD with the password of the neutron user to access the Neutron database.

  4. Exit the database.
    1
    exit