chore: 修改Docker环境安装过程中默认的数据库地址为127.0.0.1

This commit is contained in:
xboard 2023-11-24 17:03:48 +08:00
parent 7dc8a0ac6b
commit e086456777

View File

@ -81,7 +81,7 @@ class XboardInstall extends Command
}else{
$envConfig = [
'DB_CONNECTION' => 'mysql',
'DB_HOST' => $this->ask("请输入数据库地址(默认:" . ($isDocker ? '172.17.0.1' :'127.0.0.1') .")", ($isDocker ? '172.17.0.1' :'127.0.0.1')),
'DB_HOST' => $this->ask("请输入数据库地址(默认:127.0.0.1)", '127.0.0.1'),
'DB_PORT' => $this->ask('请输入数据库端口(默认:3306)', '3306'),
'DB_DATABASE' => $this->ask('请输入数据库名', 'xboard'),
'DB_USERNAME' => $this->ask('请输入数据库用户名'),