{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/7183","labels_url":"https://api.github.com/repos/laravel/framework/issues/7183/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/7183/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/7183/events","html_url":"https://github.com/laravel/framework/issues/7183","id":55888181,"number":7183,"title":"Laravel 5: DB Issue","user":{"login":"akulkarni9","id":7793763,"avatar_url":"https://avatars.githubusercontent.com/u/7793763?v=3","gravatar_id":"","url":"https://api.github.com/users/akulkarni9","html_url":"https://github.com/akulkarni9","followers_url":"https://api.github.com/users/akulkarni9/followers","following_url":"https://api.github.com/users/akulkarni9/following{/other_user}","gists_url":"https://api.github.com/users/akulkarni9/gists{/gist_id}","starred_url":"https://api.github.com/users/akulkarni9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akulkarni9/subscriptions","organizations_url":"https://api.github.com/users/akulkarni9/orgs","repos_url":"https://api.github.com/users/akulkarni9/repos","events_url":"https://api.github.com/users/akulkarni9/events{/privacy}","received_events_url":"https://api.github.com/users/akulkarni9/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-29T11:34:30Z","updated_at":"2015-01-30T20:42:12Z","closed_at":"2015-01-30T20:42:12Z","body":"Actually I don't know where to post this issue, so I'm posting it here.... \r\nI installed laravel 5 which has inbuilt login/registration system. I decided to use mysql as default DB, I created a DB, login in http://localhost/phpmyadmin. Then I gave mysql configurations as:\r\n~~~\r\n'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'database' => env('DB_DATABASE', 'Logintestfive'), 'username'=> env('DB_USERNAME', 'root'), 'password'=> env('DB_PASSWORD', 'manasa'), 'charset'=> 'utf-8', 'collation'=> 'utf-8_unicode_ci', prefix=> '', 'strict'=> false, ]\r\n~~~\r\nThen I accesses localhost:8080/auth/register, filled the form, submitted it and it returned the following errors: \r\n~~~\r\nPDOException in Connector.php line 47: SQLSTATE[28000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)\r\n~~~\r\nThis is the stack trace:\r\n~~~\r\nin Connector.php line 47\r\nat PDO->__construct('mysql:host=localhost;dbname=homestead', 'homestead', 'secret', array('0', '2', '0', false, '0')) in Connector.php line 47\r\nat Connector->createConnection('mysql:host=localhost;dbname=homestead', array('driver' => 'mysql', 'host' => 'localhost', 'database' => 'homestead', 'username' => 'homestead', 'password' => 'secret', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, 'name' => 'mysql'), array('0', '2', '0', false, '0')) in MySqlConnector.php line 20\r\nat MySqlConnector->connect(array('driver' => 'mysql', 'host' => 'localhost', 'database' => 'homestead', 'username' => 'homestead', 'password' => 'secret', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, 'name' => 'mysql')) in compiled.php line 10545\r\nat ConnectionFactory->createSingleConnection(array('driver' => 'mysql', 'host' => 'localhost', 'database' => 'homestead', 'username' => 'homestead', 'password' => 'secret', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, 'name' => 'mysql')) in compiled.php line 10541\r\nat ConnectionFactory->make(array('driver' => 'mysql', 'host' => 'localhost', 'database' => 'homestead', 'username' => 'homestead', 'password' => 'secret', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false), 'mysql') in compiled.php line 10459\r\n~~~\r\nSo I explored a bit, found out that .env file had basic configurations which pointed to homestead DB with relevant username and password. I replaced them with my DB, username and password like this: \r\n~~~\r\nAPP_ENV=local APP_DEBUG=true APP_KEY=YOUR_KEY_HERE DB_HOST=localhost DB_DATABASE=loginlaravel5 DB_USERNAME=root DB_PASSWORD=manasa CACHE_DRIVER=file SESSION_DRIVER=file\r\n~~~\r\nBut same problem repeated. So I used vim .env* and found that there were two files .env and .envexample. I edited .envexample according to my configurations. But no luck. How can I resolve this? "}}