MYSQL常用命令列表 1、系统管理 mysql -h主机地址 -u用户名 -p
连接MYSQL(在mysql/bin) exit 退出MYSQL命令 mysqladmin -u用户名 -p旧密码 password新密码
修改密码(在mysql/bin) grantselect[in...
分类:
数据库 时间:
2014-04-29 17:57:48
阅读次数:
667
引入有时候我们需要在程序中生成随机数,但是在Objective-c中并没有提供相应的函数,好在C中提供了rand()、srand()、random()、arc4random()几个函数。那么怎么使用呢?下面将简单介绍:使用1、获取一个随机整数范围在:[0,100)包括0,不包括100intx
=ar...
分类:
其他好文 时间:
2014-04-29 16:51:50
阅读次数:
625
今天,数据库的操作越来越成为整个应用的性能瓶颈了,这点对于Web应用尤其明显。关于数据库的性能,这并不只是DBA才需要担心的事,而这更是我们程序员需要去关注的事情。当我们去设计数据库表结构,对操作数据库时(尤其是查表时的SQL语句),我们都需要注意数据操作的性能。这里,我们不会讲过多的SQL语句的优...
分类:
数据库 时间:
2014-04-29 16:20:58
阅读次数:
653
导入工程:File->New->project:选择“Java project
from existing ant buildfile”再从菜单windows->show view->ant
打开ant工具对话框打开ant编译文件build.xml当编译完成后,在源码根目录下会生成一个target目...
分类:
其他好文 时间:
2014-04-29 16:17:53
阅读次数:
519
Call for PapersInternational Conference for
Smart Health (ICSH) 2014Beijing, China July 10-11,
2014http://www.icsh2014.orgAdvancing Informatics for he...
分类:
其他好文 时间:
2014-04-29 15:57:28
阅读次数:
433
案例描述
在定时脚本运行过程中,发现当备份表格的sql语句与删除该表部分数据的sql语句同时运行时,mysql会检测出死锁,并打印出日志。两个sql语句如下:
(1)insert into backup_table select * fromsource_table (2)DELETE FROM s...
分类:
数据库 时间:
2014-04-29 15:28:42
阅读次数:
775
Most of the database intensive applications are
worring about the default values of these variables obviously. Developers used
to inform me that they ...
分类:
数据库 时间:
2014-04-29 15:26:38
阅读次数:
739
使用三台虚拟机器, Ubuntu1(nginx) 192.168.226.128
Ubuntu2(php-fpm+memcached)192.168.226.132 CentOS(MySQL)192.169.226.130PHP
框架使用CakePHP,这个是很常用的MVC 框架,基于事件的分...
分类:
Web程序 时间:
2014-04-29 15:24:41
阅读次数:
477
1. 版本控制 -- 是否响应某个方法 、查看当前系统版本。 eg:[self
respondsToSelector:@Selector(presentModalViewController:animated:)]//Yes:表示响应这个方法[[UIDevice
currentDevice].sys...
分类:
其他好文 时间:
2014-04-29 15:16:27
阅读次数:
339
用mvc的思想去理解
数据源,adapter,xxxView的关系,写代码就轻松多了先写一个简单的gridview第一版:只有图片xml View Codejava代码public
class ActivityMain extends Activity { @Override ...
分类:
移动开发 时间:
2014-04-29 14:39:24
阅读次数:
970