3 final class PhabricatorMySQLConfigOptions
4 extends PhabricatorApplicationConfigOptions
{
6 public function getName() {
10 public function getDescription() {
11 return pht('Database configuration.');
14 public function getIcon() {
18 public function getGroup() {
22 public function getOptions() {
24 $this->newOption('mysql.host', 'string', 'localhost')
27 pht('MySQL database hostname.'))
28 ->addExample('localhost', pht('MySQL on this machine'))
29 ->addExample('db.example.com:3300', pht('Nonstandard port')),
30 $this->newOption('mysql.user', 'string', 'root')
33 pht('MySQL username to use when connecting to the database.')),
34 $this->newOption('mysql.pass', 'string', null)
37 pht('MySQL password to use when connecting to the database.')),
38 $this->newOption('storage.default-namespace', 'string', 'phabricator')
41 pht('The namespace that databases should use.'))
44 "Databases are created in a namespace, which defaults to ".
45 "'phabricator' -- for instance, the Differential database is ".
46 "named 'phabricator_differential' by default. You can change ".
47 "this namespace if you want. Normally, you should not do this ".
48 "unless you are developing extensions and using namespaces to ".
49 "separate multiple sandbox datasets.")),
50 $this->newOption('mysql.port', 'string', null)
53 pht('MySQL port to use when connecting to the database.')),