GithubHelp home page GithubHelp logo

Comments (7)

mazzarito avatar mazzarito commented on July 28, 2024 15

@Keyflight @fbjork Just found this out: looks like mysql is already installed on ubuntu (version 5.7) with root user password "root". Actually quite a bit of software is available:

https://help.github.com/en/articles/software-in-virtual-environments-for-github-actions#ubuntu-1804-lts

All you need to do is create your database like so:

    - name: Create DB
      run: mysql -uroot -proot -e "CREATE DATABASE dbname;"

from mysql-action.

sublayerio avatar sublayerio commented on July 28, 2024

I got the same error when the host port was 3306. I changed both ports and it works for me.

mysql-action

from mysql-action.

fbjork avatar fbjork commented on July 28, 2024

@Keyflight Thanks. Curious why the default port doesn't work.

from mysql-action.

mirromutth avatar mirromutth commented on July 28, 2024

Hi there,

Sorry for late reply.
Sounds like the host port 3306 has bound. It seems like MySQL was set-up twice or the port 3306 has been bound by other container.

from mysql-action.

mirromutth avatar mirromutth commented on July 28, 2024

@mazzarito You're right, MySQL has been installed and started by ubuntu, so the port 3306 has been bound by default MySQL that is outer than Docker.

I will add a command try to stop the default MySQL of Ubuntu before set-up Docker MySQL.

from mysql-action.

mirromutth avatar mirromutth commented on July 28, 2024

For now, there is no built-in functionality to execute a command on the host before docker build (i.e., no "hooks" to trigger scripts on the host).

@fbjork @Keyflight So we should run a script by other Actions Step that will shutdown the Default MySQL before we set-up MySQL. Or just use the Default MySQL.

I have added its description to README, it is not a solution but it may be solve this problem.

Keep this issue, maybe we can fix this in future.

from mysql-action.

knowlet avatar knowlet commented on July 28, 2024

GitHub Actions Breaking Change:
Starting March 3rd, 2020, the Ubuntu virtual environments will no longer start the MySQL service automatically.

actions/runner-images#375

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.