Path: blob/master/src/applications/config/option/PhabricatorMySQLConfigOptions.php
12256 views
<?php12final class PhabricatorMySQLConfigOptions3extends PhabricatorApplicationConfigOptions {45public function getName() {6return pht('MySQL');7}89public function getDescription() {10return pht('Database configuration.');11}1213public function getIcon() {14return 'fa-database';15}1617public function getGroup() {18return 'core';19}2021public function getOptions() {22return array(23$this->newOption('mysql.host', 'string', 'localhost')24->setLocked(true)25->setDescription(26pht('MySQL database hostname.'))27->addExample('localhost', pht('MySQL on this machine'))28->addExample('db.example.com:3300', pht('Nonstandard port')),29$this->newOption('mysql.user', 'string', 'root')30->setLocked(true)31->setDescription(32pht('MySQL username to use when connecting to the database.')),33$this->newOption('mysql.pass', 'string', null)34->setHidden(true)35->setDescription(36pht('MySQL password to use when connecting to the database.')),37$this->newOption('storage.default-namespace', 'string', 'phabricator')38->setLocked(true)39->setSummary(40pht('The namespace that databases should use.'))41->setDescription(42pht(43"Databases are created in a namespace, which defaults to ".44"'phabricator' -- for instance, the Differential database is ".45"named 'phabricator_differential' by default. You can change ".46"this namespace if you want. Normally, you should not do this ".47"unless you are developing extensions and using namespaces to ".48"separate multiple sandbox datasets.")),49$this->newOption('mysql.port', 'string', null)50->setLocked(true)51->setDescription(52pht('MySQL port to use when connecting to the database.')),53);54}5556}575859