此内容没有您所选择的语言版本。

14.5. Create the Shared File System Service Database


Create a database and database user for the Shared File System service. All steps must be performed on the database server, while logged in as the root user.

Procedure 14.2. Creating the Shared File System Service Database

  1. Connect to the database service:
    # mysql -u root
  2. Create the manila database:
    mysql> CREATE DATABASE manila;
  3. Create a manila database user and grant the user access to the manila database:
    mysql> GRANT ALL ON manila.* TO 'manila'@'%' IDENTIFIED BY 'MANILADBPASS';
    mysql> GRANT ALL ON manila.* TO 'manila'@'localhost' IDENTIFIED BY 'MANILADBPASS';
    Replace MANILADBPASS with a secure password that the manila service can use to authenticate with the database server. You will use this same password later in Section 14.4, “Configure Basic Shared File System Service Settings”.
  4. Flush the database privileges to ensure that they take effect immediately:
    mysql> FLUSH PRIVILEGES;
  5. Exit the mysql client:
    mysql> quit
  6. Create the Shared File System service tables and apply all necessary migrations:
    # manila-manage db sync
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.