10 后台无法登陆 /admin/index

点击 系统设置后,/admin/index显示找不到网页,可能由于采集数据不严谨,某些表可能没有更新,导致数据异常报错。

下面是LOG:

[2018-06-01 17:24:12] production.ERROR: PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) in /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:55

Stack trace:

#0 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(55): PDO->__construct('mysql:host=loca...', 'root', '', Array)

#1 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(22): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=loca...', Array, Array)

#2 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(60): Illuminate\Database\Connectors\MySqlConnector->connect(Array)

#3 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(49): Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection(Array)

#4 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(175): Illuminate\Database\Connectors\ConnectionFactory->make(Array, 'mysql')

#5 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(67): Illuminate\Database\DatabaseManager->makeConnection('mysql')

#6 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(3224): Illuminate\Database\DatabaseManager->connection('mysql')

#7 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(3190): Illuminate\Database\Eloquent\Model::resolveConnection(NULL)

#8 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1870): Illuminate\Database\Eloquent\Model->getConnection()

#9 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1813): Illuminate\Database\Eloquent\Model->newBaseQueryBuilder()

#10 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(1787): Illuminate\Database\Eloquent\Model->newQueryWithoutScopes()

#11 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(3442): Illuminate\Database\Eloquent\Model->newQuery()

#12 [internal function]: Illuminate\Database\Eloquent\Model->__call('lists', Array)

#13 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(3458): call_user_func_array(Array, Array)

#14 /Users/sdf_sky/web/tipaskx_release/v3.3.1/app/Models/Taggable.php(18): Illuminate\Database\Eloquent\Model::__callStatic('lists', Array)

#15 /Users/sdf_sky/web/tipaskx_release/v3.3.1/app/Models/Taggable.php(37): App\Models\Taggable::hottest('all', 25)

#16 /Users/sdf_sky/web/tipaskx_release/v3.3.1/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(206): App\Models\Taggable::App\Models\{closure}()

#17 [internal function]: Illuminate\Cache\Repository->remember('hot_tags_all', 300, Object(Closure))


求大神经理指导一下!

详细LOG文件:laravel (1).zip

请先 登录 后评论

最佳答案 2019-03-05 10:00

数据库用户名密码错误,确认一下tipask目录下的 .env配置文件

DB_USERNAME (数据库用户名)

DB_PASSWORD (数据库用户密码)

确认一下这两个变量的值是否正确

请先 登录 后评论

其它 1 个回答

自然而然 - 逸千程旅行https://www.cnuu.com/

这种问题看不懂,我网站也出现过很多种不懂的错误,目前大问题没有,问答库

请先 登录 后评论
  • 4 关注
  • 0 收藏,4547 浏览
  • 李尚 提出于 2019-02-25 12:39