GithubHelp home page GithubHelp logo

链接数据库报错 about code6 HOT 6 CLOSED

4x99 avatar 4x99 commented on June 10, 2024
链接数据库报错

from code6.

Comments (6)

yoonper avatar yoonper commented on June 10, 2024

IP 地址还是不变指的是什么
Access denied 可以参考常见问题 1 处理

from code6.

shu1qin9 avatar shu1qin9 commented on June 10, 2024

IP 地址还是不变指的是什么
Access denied 可以参考场景问题 1 处理

就是在创建容器的时候,-e MYSQL_HOST这样指定的MySQL链接IP ,进入到容器之后没有发生变化
好的,我去试一试,谢谢您

from code6.

yoonper avatar yoonper commented on June 10, 2024

通过 -e MYSQL_HOST 方式启动容器,进入容器后可以 cat .env 看配置是否正确
如果正确连不上请参考常见问题 1 处理

from code6.

shu1qin9 avatar shu1qin9 commented on June 10, 2024

通过 -e MYSQL_HOST 方式启动容器,进入容器后可以 cat .env 看配置是否正确
如果正确连不上请参考常见问题 1 处理

如果不正确的话,我是不是可以直接从docker外部写一个.env文件然后放进去呢

from code6.

yoonper avatar yoonper commented on June 10, 2024

可以,配置正确后执行下面语句自动导入数据表:

php artisan migrate --force

from code6.

shu1qin9 avatar shu1qin9 commented on June 10, 2024

可以,配置正确后执行下面语句自动导入数据表:

php artisan migrate --force

好嘞,了解,谢谢您

from code6.

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.