Advertisement
Guest User

Untitled

a guest
Sep 13th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (61)
  2.  
  3. /Applications/MAMP/htdocs/crowdsets/laravel-master/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php
  4.  
  5. public function createConnection($dsn, array $config, array $options)
  6. {
  7. $username = array_get($config, 'username');
  8.  
  9. $password = array_get($config, 'password');
  10.  
  11. return new PDO($dsn, $username, $password, $options);
  12. }
  13.  
  14. 'mysql' => array(
  15. 'driver' => 'mysql',
  16. 'host' => '127.0.0.1',
  17. 'database' => 'database',
  18. 'username' => 'root',
  19. 'password' => 'root',
  20. 'charset' => 'utf8',
  21. 'collation' => 'utf8_unicode_ci',
  22. 'prefix' => '',
  23. ),
  24.  
  25. 'mysql' => array(
  26. 'driver' => 'mysql',
  27. 'host' => '127.0.0.1',
  28. 'port' => '8889',
  29. 'database' => 'database',
  30. 'username' => 'root',
  31. 'password' => 'root',
  32. 'charset' => 'utf8',
  33. 'collation' => 'utf8_unicode_ci',
  34. 'prefix' => '',
  35. ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement