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

查看:28
本文介绍了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:xampphtdocsProjectslogvendorlaravelframeworksrcIlluminateDatabaseConnectorsConnector.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天全站免登陆