mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 05:28:18 +01:00
Add warning when setting up localhost with mysql driver
This commit is contained in:
parent
4a6fd7dc70
commit
4fb2f3e7a7
@ -148,6 +148,9 @@ class InstallCommand extends Command
|
||||
$config['DB_DATABASE'] = $this->ask('Please provide the full path to your SQLite file.', $config['DB_DATABASE']);
|
||||
} else {
|
||||
$config['DB_HOST'] = $this->ask("What is the host of your {$config['DB_DRIVER']} database?", $config['DB_HOST']);
|
||||
if ($config['DB_HOST'] === 'localhost' && $config['DB_DRIVER'] === 'mysql') {
|
||||
$this->warn("Using 'localhost' will result in the usage of a local unix socket. Use 127.0.0.1 if you want to connect over TCP");
|
||||
}
|
||||
|
||||
$config['DB_DATABASE'] = $this->ask('What is the name of the database that Cachet should use?', $config['DB_DATABASE']);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user