摘要: http://www.cppreference.com/operator_precedence.htmlPrecedenceOperatorDescriptionExampleAssociativity1()[]->.::++--Grouping operatorArray accessMember access from a pointerMember access from an objectScoping operatorPost-incrementPost-decrement(a + b) / 4;array[4] = 2;ptr->age = 34;obj.age = 3 阅读全文
posted @ 2012-04-25 16:50 wangkangluo1 阅读(308) 评论(0) 推荐(0) 编辑
摘要: yii连接mysql 数据库 指定socket'connectionString' => 'mysql:host=localhost;dbname=yii_test;unix:/opt/lampp/var/mysql/mysql.sock', 阅读全文
posted @ 2012-04-25 02:40 wangkangluo1 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 1、关闭Mysql: 如果 MySQL 正在运行,首先杀之 killall -TERM mysqld2、另外的方法启动 MySQL :bin/safe_mysqld --skip-grant-tables3、可以不需要密码就进入 MySQL 了。然后就是>use mysql>update user set password=password("new_pass") where user="root";>flush privileges; 注意点同上4、重新杀 MySQL ,用正常方法启动 MySQL 阅读全文
posted @ 2012-04-25 02:11 wangkangluo1 阅读(176) 评论(0) 推荐(1) 编辑