Comments (7)
@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:
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.
I got the same error when the host port was 3306
. I changed both ports and it works for me.
from mysql-action.
@Keyflight Thanks. Curious why the default port doesn't work.
from mysql-action.
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.
@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.
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.
GitHub Actions Breaking Change:
Starting March 3rd, 2020, the Ubuntu virtual environments will no longer start the MySQL service automatically.
from mysql-action.
Related Issues (16)
- Database is not created HOT 5
- 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
- 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
- Standardize Configuration Naming Convention - CamelCase or snake_case
- 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.