GithubHelp home page GithubHelp logo

Database is not created about mysql-action HOT 5 OPEN

mirromutth avatar mirromutth commented on July 28, 2024
Database is not created

from mysql-action.

Comments (5)

J4Wx avatar J4Wx commented on July 28, 2024

I'm having this same issue.

SQLSTATE[HY000] [1049] Unknown database '***' (SQL: selec t * from information_schema.tables where table_schema = *** and table_name = migrations and table_type = 'BASE TABLE')

from mysql-action.

mirromutth avatar mirromutth commented on July 28, 2024

Hi there, thanks for your report.

It is work to me, see https://github.com/mirromutth/r2dbc-mysql/blob/master/.github/workflows/build.yml

And, please keep mysql user empty if you have defined mysql root password. The mysql user option will create a superuser for the specified database, but it is not root superuser. Of course this is not the cause of this problem.

I will try create test cases to reproduce this scene.

from mysql-action.

mirromutth avatar mirromutth commented on July 28, 2024

@J4Wx @fridzema

I try create test cases for this problem but I can not reproduce it. What have I missed? See https://github.com/mirromutth/mysql-action/blob/master/.github/workflows/test.yml and https://github.com/mirromutth/mysql-action/blob/master/test

Thanks for your time

from mysql-action.

eugbyte avatar eugbyte commented on July 28, 2024

I am experiencing the same issue

your test cases do not include test the databases created

To reproduce

      - name: Shutdown Default Ubuntu MySQL (SUDO)
        run: sudo service mysql stop
      - name: Install MySQL
        uses: mirromutth/[email protected]
        with:
          host port: 3306
          container port: 3306
          mysql version: '8.0'
          mysql database: 'my_db'  <--- default db to initalize
          mysql user: root
          mysql password: root
          
      - name: Start MySQL
        run: sudo service mysql start
      - name: Verify MySQL
        run: mysql --user=root --password=root
      - name: List existing SQL databases
        run: mysql --user=root --password=root --execute="show databases;" <--- my_db is not shown

my_db is not shown

Database
information_schema
mysql
performance_schema
sys

from mysql-action.

ricardonolan avatar ricardonolan commented on July 28, 2024

I had the same issue, problem is that for some reason, local mysql is still running (or some other version).
Run this instead:
mysql -h 127.0.0.1 --user=root --password=root --execute="show databases;"
and your db should be there.

from mysql-action.

Related Issues (15)

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.