Git Product home page Git Product logo

Comments (4)

petehalverson avatar petehalverson commented on August 20, 2024

I'm curious if there may be a race condition on the availability of the mysql service. Assuming you're using the database example for mysql docker-compose.yml, the mysql container will create a new octobercms database each time it starts up.

You must wait for that process to complete before running docker-compose exec web php artisan october:up

Watch the output of the mysql container logs docker-compose logs -f. Once you see 'ready for connections' in the logs, try the october:up cmd.

from docker-octobercms.

petehalverson avatar petehalverson commented on August 20, 2024

Also, if you'd like the database to persist, you can add a bind mount volume for /var/lib/mysql to the mysql service in your docker-compose.yml

   volumes:
      - ./db:/var/lib/mysql

from docker-octobercms.

nurikabe avatar nurikabe commented on August 20, 2024

Ah, it looks like the server is asking the client to use some kind of newer caching_sha2_password auth protocol. PHP mysqli doesn't seem to support this yet. (And neither do DbVis nor HeidiSQL as far as I can tell.)

Some details: https://stackoverflow.com/questions/49194719/authentication-plugin-caching-sha2-password-cannot-be-loaded

Going back to image: mysql:5.7 seems to work.

from docker-octobercms.

petehalverson avatar petehalverson commented on August 20, 2024

Thanks for the heads up.

from docker-octobercms.

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.