Comments (5)
i have the same issue
Both root password and superuser are empty, must contains one superuser
from mysql-action.
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.
Thanks @dansimau . I will try that too but it really should allow root with no password.
from mysql-action.
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.
This guy made a fork that allows empty root password: https://github.com/samin/mysql-action
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
- 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
- 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.