一问题发现

命令行进入数据库实后,对数据库中的某个表进行show操作,发现如下报错。

mysql> show databases;
No connection. Trying to reconnect...
Connection id:    2
Current database: WLB_BDCJiangsu

ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
ERROR:
Can't connect to the server

Read more...

Published on by


Published on by


Published on by


Published on by


由于某些原因,国内访问Github有时会异常缓慢,通过修改系统hosts文件的办法,绕过国内dns解析,直接访问GitHub的CDN节点,从而达到加速的目的。

实现

在本地host文件中添加映射,步骤如下:

用文本编辑器打开hosts文件(注意修改访问权限),位于C:\Windows\System32\drivers\etc 目录下

打开 http://tool.chinaz.com/dns ,这是一个查询域名映射关系的工具

Read more...

Published on by