摘要: mysql 的root账户,我在连接时通常用的是localhost或127.0.0.1,公司的测试服务器上的mysql也是localhost所以我想访问无法访问,测试暂停.解决方法如下:1、修改表,登录mysql数据库,切换到mysql数据库,使用sql语句查看"select host,user from user ;"\mysql -u root -pvmwaremysql>use mysql;\mysql>update user set host = '%' where user ='root';\mysql>selec 阅读全文
posted @ 2014-03-22 13:07 公子张 阅读(219) 评论(0) 推荐(0)
摘要: yii rules 验证详解public function rules() { return array( array('project_id, type_id, status_id, owner_id, requester_id,', 'numerical', 'integerOnly'=>true), array('name', 'length', 'max'=>256), array('description', 'length', 'max 阅读全文
posted @ 2014-03-19 10:44 公子张 阅读(398) 评论(0) 推荐(0)
摘要: 最近公司老大们要做网站加速,看着varnish评论不错,就选它了,网站平台是windows2003的,要和varnish放在一台机器上。这里想先说说博主辛苦一天安装配置下来的结果:https://www.varnish-cache.org/trac/wiki/VarnishOnCygwinWindowsRemember that Varnish on Cygwin Windows is not recommended for productions sites and it is only a proof-of-concept that can be used to test applicat 阅读全文
posted @ 2014-03-18 20:47 公子张 阅读(1056) 评论(0) 推荐(0)
摘要: Yii::app()->request->userHostAddress; //获取客户端IP 阅读全文
posted @ 2014-03-17 14:14 公子张 阅读(225) 评论(0) 推荐(0)
摘要: 1 在终端里输入:2 3 . /etc/bash_completion 阅读全文
posted @ 2014-03-16 22:03 公子张 阅读(214) 评论(0) 推荐(0)