Advertisement
Guest User

Untitled

a guest
Mar 16th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. PDOException in Connector.php line 68:
  2. SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.
  3.  
  4. in Connector.php line 68
  5. at PDO->__construct('mysql:host=127.0.0.1;port=3306;dbname=blog', 'root', '', array(0, 2, 0, false, false)) in Connector.php line 68
  6. at Connector->createPdoConnection('mysql:host=127.0.0.1;port=3306;dbname=blog', 'root', '', array(0, 2, 0, false, false)) in Connector.php line 43
  7. at Connector->createConnection('mysql:host=127.0.0.1;port=3306;dbname=blog', array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'blog', 'username' => 'root', 'password' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => null, 'name' => 'mysql'), array(0, 2, 0, false, false)) in MySqlConnector.php line 24
  8. at MySqlConnector->connect(array('driver' => 'mysql', 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'blog', 'username' => 'root', 'password' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => null, 'name' => 'mysql')) in ConnectionFactory.php line 183
  9.  
  10. DB_CONNECTION=mysql
  11. DB_HOST=127.0.0.1
  12. DB_PORT=4444
  13. DB_DATABASE=DBnam
  14. DB_USERNAME=Username
  15. DB_PASSWORD=MyDBKey
  16.  
  17. 'mysql' => [
  18. 'driver' => 'mysql',
  19. 'host' => env('DB_HOST', '127.0.0.1'),
  20. 'port' => env('DB_PORT', '4444'),
  21. 'database' => env('DB_DATABASE', 'DBname'),
  22. 'username' => env('DB_USERNAME', 'Username'),
  23. 'password' => env('DB_PASSWORD', 'MyDBKey'),
  24. 'charset' => 'utf8mb4',
  25. 'collation' => 'utf8mb4_unicode_ci',
  26. 'prefix' => '',
  27. 'strict' => true,
  28. 'engine' => null,
  29. ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement