Guest User

Untitled

a guest
May 20th, 2018
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. laravel new blog
  2.  
  3. php artisan serve
  4.  
  5. php artisan migrate
  6.  
  7. IlluminateDatabaseQueryException : SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = blog and table_name = migrations)
  8.  
  9. at /home/morilon/php_proj/blog/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
  10. 660| // If an exception occurs when attempting to run a query, we'll format the error
  11. 661| // message to include the bindings with SQL, which will make this exception a
  12. 662| // lot more helpful to the developer instead of just the database's errors.
  13. 663| catch (Exception $e) {
  14. > 664| throw new QueryException(
  15. 665| $query, $this->prepareBindings($bindings), $e
  16. 666| );
  17. 667| }
  18. 668|
  19.  
  20. Exception trace:
  21.  
  22. 1 PDOException::("SQLSTATE[HY000] [2002] Connection refused")
  23. /home/morilon/php_proj/blog/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68
  24.  
  25. 2 PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=blog", "root", "", [])
  26. /home/morilon/php_proj/blog/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68
  27.  
  28. Please use the argument -v to see more details.
Add Comment
Please, Sign In to add comment