GithubHelp home page GithubHelp logo

Comments (5)

drodriguesj avatar drodriguesj commented on July 28, 2024

i have the same issue

Both root password and superuser are empty, must contains one superuser

from mysql-action.

dansimau avatar dansimau commented on July 28, 2024

I solved this by first setting a password and then removing it afterwards, e.g.:

[...]

      - uses: mirromutth/[email protected]
        with:
          mysql version: 5.7
          mysql root password: root

      - name: Reset mysql password
        run: |
          # To prevent "ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0"
          # See: https://github.com/mirromutth/mysql-action/issues/16
          sleep 15

          cat <<EOF | mysql -h 127.0.0.1 -u root --password=root
            UPDATE mysql.user SET authentication_string = null WHERE user = 'root';
            FLUSH PRIVILEGES;
          EOF

[...]

from mysql-action.

jasonperrone avatar jasonperrone commented on July 28, 2024

Thanks @dansimau . I will try that too but it really should allow root with no password.

from mysql-action.

jasonperrone avatar jasonperrone commented on July 28, 2024

It's funny because despite your comment I got

ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0

lol. There has to be a better way.

from mysql-action.

jasonperrone avatar jasonperrone commented on July 28, 2024

This guy made a fork that allows empty root password: https://github.com/samin/mysql-action

from mysql-action.

Related Issues (16)

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.