【发布时间】:2015-07-04 17:22:29
【问题描述】:
我有一个使用 Laravel 4 的应用程序,它可以在 localhost 中正确运行, 但是当我将它上传到我的主机时,我收到了错误。
app>config>database.php 文件是:
'mysql' => array(
'driver' => 'mysql',
'host' => '127.0.0.1',
'database' => 'forum',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),
而 bootstrap>start.php 是:
$env = $app->detectEnvironment(array(
'local' => array('homestead'),
));
【问题讨论】:
-
您的用户名或密码不正确。请查阅您主机的支持页面/文档,以了解如何登录到您的数据库。如果失败了,请使用支持——这就是它的用途。