Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]这个BUG上个月反馈过,今天测试了一下还是有问题,系统centos7 #896

Closed
maxwellhouse102 opened this issue Dec 14, 2019 · 1 comment

Comments

@maxwellhouse102
Copy link

Invalid catalog name: 1046 No database selected in /www/wwwroot/111/vendor/illuminate/database/Connection.php:333
Stack trace:
#0 /www/wwwroot/111/vendor/illuminate/database/Connection.php(333): PDO->prepare('select * from ...') #1 /www/wwwroot/111/vendor/illuminate/database/Connection.php(722): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'select * from ...', Array)
#2 /www/wwwroot/111/vendor/illuminate/database/Connection.php(685): Illuminate\Database\Connection->runQueryCallback('select * from ...', Array, Object(Closure)) #3 /www/wwwroot/111/vendor/illuminate/database/Connection.php(349): Illuminate\Database\Connection->run('select * from ...', Array, Object(Closure))
#4 /www/wwwroot/111/vendor/illuminate/database/Query/Builder.php(1610): Illuminate\Database\Connection->select('select * from `...', Array, true)
#5 /www/wwwroot/111/vendor/illuminate/database/Query/Builder.php(1596): Illuminate\D in /www/wwwroot/111/vendor/illuminate/database/Connection.php on line 729

Fatal error: Uncaught PDOException: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected in /www/wwwroot/111/vendor/illuminate/database/Connection.php:333
Stack trace:
#0 /www/wwwroot/111/vendor/illuminate/database/Connection.php(333): PDO->prepare('select * from ...') #1 /www/wwwroot/111/vendor/illuminate/database/Connection.php(722): Illuminate\Database\Connection->Illuminate\Database\{closure}(Object(Illuminate\Database\MySqlConnection), 'select * from ...', Array)
#2 /www/wwwroot/111/vendor/illuminate/database/Connection.php(685): Illuminate\Database\Connection->runQueryCallback('select * from ...', Array, Object(Closure)) #3 /www/wwwroot/111/vendor/illuminate/database/Connection.php(349): Illuminate\Database\Connection->run('select * from ...', Array, Object(Closure))
#4 /www/wwwroot/111/vendor/illuminate/database/Query/Builder.php(1610): Illuminate\Database\Connection->select('select * from `...', Array, true)
#5 /www/wwwroot/111/vendor/illuminate/database/Query/Builder.php(1596): Illuminate\D in /www/wwwroot/111/vendor/illuminate/database/Connection.php on line 729

@JusufUs
Copy link

JusufUs commented Aug 16, 2020

我今天竟然也碰到这个问题了。楼主怎么解决的?。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants