连星巴克wifi后,本机的docker数据库无法连接,断开wifi可连
Tofloor
poster avatar
186******42
deepin
2017-07-16 04:05
Author
大家好,我遇到这么个现象。
操作系统deepin15.4.1
本机docker启动了mysql镜像,bind ip 0.0.0.0
在自己家的局域网,使用mysql -uroot -p 连接没有任何问题。
但是在星巴克,连上wifi后,用mysql -uroot  -p 就有问题,报告
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 2


但是,当我断开wifi,不联网,立马就连上了…………
感觉是操作系统不认可这个wifi的安全性??做了什么策略么?
my.cnf
  1. [client]
  2. port = 3306
  3. default-character-set = utf8mb4

  4. [mysqld]
  5. user = mysql  
  6. port = 3306  
  7. bind-address = 0.0.0.0
  8. skip-name-resolve
  9. lower_case_table_names = 1  
  10. character-set-server = utf8mb4  
  11. default-time-zone = '+8:00'
  12. open_files_limit = 1024
  13. max_connections = 300
Copy the Code
docker
  1. Client:
  2. Version:      1.13.0
  3. API version:  1.25
  4. Go version:   go1.7.4
  5. Git commit:   49bf474
  6. Built:        Tue Mar 28 05:36:33 2017
  7. OS/Arch:      linux/amd64

  8. Server:
  9. Version:      1.13.0
  10. API version:  1.25 (minimum version 1.12)
  11. Go version:   go1.7.4
  12. Git commit:   49bf474
  13. Built:        Tue Mar 28 05:36:33 2017
  14. OS/Arch:      linux/amd64
  15. Experimental: false
Copy the Code
mysql镜像是 docker pull mysql:5.6 下载下来的官方镜像
Reply Favorite View the author
All Replies

No replies yet