you need to update your database connection variables, like DB_HOST, DB_USER, etc. You can most likely get them from your hosting's control panel.
Access denied for user 'root'@'localhost'
I uploaded all laravel 5.2 project to a hosting. I changed connection to database in .env file, i changed public direction but when i load a site it shows me an error SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) ================== at Connector->createConnection('mysql:host=127.0.0.1;port=3306;dbname=surdotalker', array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'surdotalker', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, 'engine' => null, 'name' => 'mysql'), array('0', '2', '0', false, false)) in MySqlConnector.php line 24 =========== at MySqlConnector->connect(array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'surdotalker', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, 'engine' => null, 'name' => 'mysql')) in ConnectionFactory.php line 61
===== env file DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=host1680244 DB_USERNAME=host1680244 DB_PASSWORD=a3ec8d8c
========== what should i do help me ..... maybe something wrong with host ? I am using hostland.ru
Please or to participate in this conversation.