Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web container: Warning: World-writable config file '/home/.my.cnf' is ignored #944

Closed
rfay opened this issue Jun 27, 2018 · 0 comments
Closed
Milestone

Comments

@rfay
Copy link
Member

rfay commented Jun 27, 2018

Describe the bug

/home/my.cnf doesn't work if writeable, and we have ended up with it writeable.

Warning: World-writable config file '/home/.my.cnf' is ignored

To Reproduce

ddev ssh
mysql
Warning: World-writable config file '/home/.my.cnf' is ignored
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Expected behavior

Connect to the mysql db named 'db'

Actual behavior:

Warning: World-writable config file '/home/.my.cnf' is ignored
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

The workaround:
Use mysql -udb -pdb -h db db
or
sudo chmod ugo-w ~/.my.cnf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant