From ca651a7815cef2f067cc89fccef27ce43896eb1f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 10 May 2014 20:05:56 -0500 Subject: [PATCH 1/2] Configure default database connections for Forge and Homestead. --- app/config/database.php | 8 +++--- app/config/local/database.php | 47 +++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 app/config/local/database.php diff --git a/app/config/database.php b/app/config/database.php index e6a32ce4..3498fa81 100644 --- a/app/config/database.php +++ b/app/config/database.php @@ -55,8 +55,8 @@ 'mysql' => array( 'driver' => 'mysql', 'host' => 'localhost', - 'database' => 'database', - 'username' => 'root', + 'database' => 'forge', + 'username' => 'forge', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', @@ -66,8 +66,8 @@ 'pgsql' => array( 'driver' => 'pgsql', 'host' => 'localhost', - 'database' => 'database', - 'username' => 'root', + 'database' => 'forge', + 'username' => 'forge', 'password' => '', 'charset' => 'utf8', 'prefix' => '', diff --git a/app/config/local/database.php b/app/config/local/database.php new file mode 100644 index 00000000..6d802fa8 --- /dev/null +++ b/app/config/local/database.php @@ -0,0 +1,47 @@ + array( + + 'mysql' => array( + 'driver' => 'mysql', + 'host' => 'localhost', + 'database' => 'homestead', + 'username' => 'vagrant', + 'password' => '', + 'charset' => 'utf8', + 'collation' => 'utf8_unicode_ci', + 'prefix' => '', + ), + + 'pgsql' => array( + 'driver' => 'pgsql', + 'host' => 'localhost', + 'database' => 'homestead', + 'username' => 'vagrant', + 'password' => '', + 'charset' => 'utf8', + 'prefix' => '', + 'schema' => 'public', + ), + + ), + +); From b9c69c6d9484d759742100c666367d8327d9f6ae Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 12 May 2014 13:34:01 -0500 Subject: [PATCH 2/2] Change local database user. --- app/config/local/database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config/local/database.php b/app/config/local/database.php index 6d802fa8..5c68b56b 100644 --- a/app/config/local/database.php +++ b/app/config/local/database.php @@ -24,7 +24,7 @@ 'driver' => 'mysql', 'host' => 'localhost', 'database' => 'homestead', - 'username' => 'vagrant', + 'username' => 'homestead', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', @@ -35,7 +35,7 @@ 'driver' => 'pgsql', 'host' => 'localhost', 'database' => 'homestead', - 'username' => 'vagrant', + 'username' => 'homestead', 'password' => '', 'charset' => 'utf8', 'prefix' => '',