03 2014 档案
摘要: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
阅读全文
摘要: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
阅读全文
摘要:最近公司老大们要做网站加速,看着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
阅读全文
摘要:Yii::app()->request->userHostAddress; //获取客户端IP
阅读全文
摘要:1 在终端里输入:2 3 . /etc/bash_completion
阅读全文

浙公网安备 33010602011771号