laravel 5中的数据库连接问题 [英] problems with database connection in laravel 5

查看:156
本文介绍了laravel 5中的数据库连接问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用命令php artisan migrate迁移数据库连接,但是仍然出现相同的错误,并且检查了所有内容,没有错.我使用了与Laravel 4.2中一样的连接方式

I use the command php artisan migrate to migrate my database connection but I still get the same error and I checked everything, nothing wrong. I used the same connection that I always use in Laravel 4.2

这是我在控制台上收到的消息:

Here is the message I get on my console:

exception 'PDOException' with message 'SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)' in C:\xampp\htdocs\Projects\blog\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:47

推荐答案

看看您的config/database.php和.env文件.也许您的数据库信息不同.

Take a look at your config/database.php and .env file.Maybe your database information is different.

这篇关于laravel 5中的数据库连接问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆