Comments (5)
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.
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.
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.
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.
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)
- MySQL server has gone away HOT 8
- How do you use native password authentication? HOT 1
- How to use MySQL without password? HOT 1
- How to start mysql ? HOT 3
- Lost connection to MySQL server at 'reading initial communication packet' HOT 1
- I want to configure root with empty password, what can I do? HOT 5
- Should automatically shutdown the Default MySQL before setup a MySQL HOT 7
- Multiple database
- How to create table?
- Laravel problems: Syntax error or access violation: 1071 Specified key was too long; max key length is 3072 bytes
- Access denied for user 'root'@'localhost' HOT 2
- Repository updates and maintainership
- OT: Credentials for Default MySQL on Windows or macOS? HOT 2
- Dump data into database HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysql-action.