Coder Social home page Coder Social logo

Comments (11)

Tai7sy avatar Tai7sy commented on July 23, 2024

运行命令行 php artisan migrate:fresh --seed 即可自动生成新的数据库

from card-system.

NBY avatar NBY commented on July 23, 2024

运行命令行 php artisan migrate:fresh --seed 即可自动生成新的数据库

我进入docker内执行构建数据库相关命令无回显也没有新的表增加

from card-system.

Tai7sy avatar Tai7sy commented on July 23, 2024

那你执行php命令没有回显我也没办法啊.. 你docker难不成没装php?

from card-system.

NBY avatar NBY commented on July 23, 2024

我是通过Docker Compose管理多个容器,分为nginx php5.6 php7.2 mysql四块,没都在一个容器内。。。进入php7.2能正常执行php命令,但是执行生成数据库的命令后没有表增加,host,port,username,password,dbname均正确。

from card-system.

Tai7sy avatar Tai7sy commented on July 23, 2024

那是否可以把执行的错误输出发一下

from card-system.

NBY avatar NBY commented on July 23, 2024

root@xxxxx:~/docker/www/xxxxx.cc# docker exec -it 42xxxxxfab66 bash
root@42xxxxxfab66:/var/www/html# cd xxxxx.cc/
root@42xxxxxfab66:/var/www/html/xxxxx.cc# php artisan migrate:fresh --seed
root@42xxxxxfab66:/var/www/html/xxxxx.cc# exit
exit
没输出任何信息 很蛋疼
PHP 7.2.7 (cli) (built: Nov 29 2018 19:01:46) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.7, Copyright (c) 2002-2018, by ionCube Ltd.
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
with Zend OPcache v7.2.7, Copyright (c) 1999-2018, by Zend Technologies

from card-system.

Tai7sy avatar Tai7sy commented on July 23, 2024

可以运行一下下面的命令, 如果依然没有输出请检查你的php环境是否完整

ubuntu@Windy:/mnt/d/xx/card$ php --version
PHP 7.2.10 (cli) (built: Oct 20 2018 18:54:13) ( NTS )
...
ubuntu@Windy:/mnt/d/xx/card$ php artisan
Laravel Framework 5.5.44

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
....

from card-system.

NBY avatar NBY commented on July 23, 2024

看起来是我环境不完整 我修改一下Dockerfile重新构建一下镜像

from card-system.

dungei avatar dungei commented on July 23, 2024

您好,我是win环境,能否给个sql文件,我导入一下

from card-system.

Tai7sy avatar Tai7sy commented on July 23, 2024

命令行执行php artisan migrate --seed
会自动创建数据库

from card-system.

dungei avatar dungei commented on July 23, 2024

我是windows的电脑。本地先测试一下系统,没办法执行命令行,能否直接分享个sql文件

from card-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.