MySQL 5.7 设置密码

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'your_password'; flush privileges;

Nginx Access Control Allow Origin

当静态资源文件和主站域名不一样时,字体文件之类的会爆如下错误: Font from origin 'http://www.typenter.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on ...

Nginx refused visitor IP

nginx禁止直接使用IP访问服务器:

 

XenServer error This operation cannot be performed because the specified virtual disk could not be found

最近在XenServer里面创建虚拟机并安装好系统之后,重启老是出现这样的错误,以前也遇见过相同的错误,但都是重装来解决问题的,今天算是找到根源了,困扰了很久的一个问题,网上也没找到相应的解决办法.错误信息:

2014/5/5 11:22:21
Error: Starting VM '10.10.0.110-jmw-backend-windows-2008' - This operation cannot be performed because the specified virtual disk could not be found

MySQL alter语句用法

MySQL alter语句用法
1:删除列ALTER TABLE 【表名字】 DROP 【列名称】
2:增加列ALTER TABLE 【表名字】 ADD 【列名称】 INT NOT NULL COMMENT '注释说明' ......