Skip to content

Instantly share code, notes, and snippets.

@younthu
Created May 13, 2019 13:51
Show Gist options
  • Save younthu/2d9ff1810e9207ff8b94be864753a1e7 to your computer and use it in GitHub Desktop.
Save younthu/2d9ff1810e9207ff8b94be864753a1e7 to your computer and use it in GitHub Desktop.
无法从docker host连接到mysql
在mac上刚起mysql docker, 然后安装一个mysql client, 通过 mysql -uroot -p --protocol=tcp连接的时候报错:"connection from ip '172.20.0.2' is not allowed".
折腾半天,搞不定。然后重启Mac, 好了!
人生就是这样,莫名其妙就坏了,莫名其妙就好了!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment