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

数据库初始化失败,该怎么解决? #89

Closed
ningmin94 opened this issue Apr 9, 2022 · 7 comments
Closed

数据库初始化失败,该怎么解决? #89

ningmin94 opened this issue Apr 9, 2022 · 7 comments

Comments

@ningmin94
Copy link

[root@VM-4-8-centos dootask]# ./cmd install
[+] Running 3/3
⠿ Container dootask-redis-jg Running 0.0s
⠿ Container dootask-mariadb-jg Started 11.1s
⠿ Container dootask-php-jg Started 11.3s
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
Discovered Package: barryvdh/laravel-ide-helper
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: hhxsv5/laravel-s
Discovered Package: intervention/image
Discovered Package: kitloong/laravel-migrations-generator
Discovered Package: laravel/sail
Discovered Package: laravel/tinker
Discovered Package: maatwebsite/excel
Discovered Package: madnest/madzipper
Discovered Package: mews/captcha
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: orangehill/iseed
Package manifest generated successfully.
95 packages you are using are looking for funding.
Use the composer fund command to find out more!
[错误] 数据库初始化失败!

@kuaifan
Copy link
Owner

kuaifan commented Apr 9, 2022 via email

@ningmin94
Copy link
Author

不可以,这两天我试了很多次,有二三十次还是不可以。 资源是从哪里下载的,可以给个域名让ping一下么?看是否是服务器的问题?

@ningmin94
Copy link
Author

已解决。代码从windows复制到centos上,文件格式错误引起的

@990385038
Copy link

已解决。代码从windows复制到centos上,文件格式错误引起的

请问是什么意思,不是git下载的包吗,为什么有文件格式错误,谢谢

@ningmin94
Copy link
Author

请问是什么意思,不是git下载的包吗,为什么有文件格式错误,谢谢

我是用本地windows环境的git拉取的。这里会修改文件的换行符等,我在上传到linux服务器上时,linux不认这些换行符,报错。

@CloudS-Hu
Copy link

一模一样的错误,不管是网络还是文件换行符更改后一直解决不了

[+] Running 3/0
 ⠿ Container dootask-redis-a5bb4c    Running                                                                                                                                                                                                                              0.0s
 ⠿ Container dootask-php-a5bb4c      Running                                                                                                                                                                                                                              0.0s
 ⠿ Container dootask-mariadb-a5bb4c  Started                                                                                                                                                                                                                              0.0s
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: barryvdh/laravel-ide-helper
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: hhxsv5/laravel-s
Discovered Package: intervention/image
Discovered Package: kitloong/laravel-migrations-generator
Discovered Package: laravel/sail
Discovered Package: laravel/tinker
Discovered Package: maatwebsite/excel
Discovered Package: madnest/madzipper
Discovered Package: mews/captcha
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: orangehill/iseed
Package manifest generated successfully.
95 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
[错误]  数据库初始化失败!

@CloudS-Hu
Copy link

我的环境是 homestead

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

4 participants