Movatterモバイル変換


[0]ホーム

URL:


CFEngine documentation homepage

lib/databases.cf

Suggest changes
Table of contents

See thedatabases promises documentation for acomprehensive reference on the body types and attributes used here.

database_server bodies

local_mysql

Prototype:local_mysql(username, password)

Description: Defines a MySQL server running on localhost

Arguments:

  • username: The username for the server connection
  • password: The password for the server connection

See also:db_server_owner,db_server_password

Implementation:

code
bodydatabase_serverlocal_mysql(username,password){db_server_owner=>"$(username)";db_server_password=>"$(password)";db_server_host=>"localhost";db_server_type=>"mysql";db_server_connection_db=>"mysql";}

local_postgresql

Prototype:local_postgresql(username, password)

Description: Defines a PostgreSQL server running on localhost

Arguments:

  • username: The username for the server connection
  • password: The password for the server connection

See also:db_server_owner,db_server_password

Implementation:

code
bodydatabase_serverlocal_postgresql(username,password){db_server_owner=>"$(username)";db_server_password=>"$(password)";db_server_host=>"localhost";db_server_type=>"postgres";db_server_connection_db=>"postgres";}

Still need help?

Chat Ask a question on Github Mailing list
Version 
master3.24 (LTS)3.21 (LTS)view all versions

[8]ページ先頭

©2009-2025 Movatter.jp