摘要: InnoDB行锁是通过给索引上的索引项加锁来实现的,InnoDB这种行锁实现特点意味着:只有通过索引条件检索数据,InnoDB才使用行级锁,否则,InnoDB将使用表锁! (1)在不通过索引条件查询的时候,InnoDB确实使用的是表锁,而不是行锁。 在没有索引的情况下,InnoDB只能使用表锁。 ( 阅读全文
posted @ 2018-01-15 14:53 mayer326 阅读(1549) 评论(0) 推荐(0) 编辑
摘要: 1、定时任务服务提供crontab命令来设定服务 2、crontab -e //编辑某个用户的cron服务 3、crontab -l //列出某个用户cron服务的详细内容 4、crontab -r //删除每个用户的cron服务 具体方法如下: 1、进入Linux,输入命令sudo crontab 阅读全文
posted @ 2017-12-28 15:47 mayer326 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 1、登录linux服务器 2、sudo apt-get install git sudo apt-get install ssh 3、服务器创建一个用户名为ceshi的用户 sudo adduser ceshi 4、按照提示创建完毕后,进入刚创建好的ceshi文件夹下,目录在/home/ceshi/ 阅读全文
posted @ 2017-12-27 14:24 mayer326 阅读(795) 评论(0) 推荐(0) 编辑
摘要: <?php class NorthCook { public function fan() { return '面条'; } public function cai() { return '炒菜'; } public function tang() { return '蛋花汤'; }} class 阅读全文
posted @ 2017-12-26 14:04 mayer326 阅读(108) 评论(0) 推荐(0) 编辑
摘要: <?phpclass Admin { public function __construct() { if($this->top null) { return; } $this->toper = new $this->top(); } public function proc($danger) { 阅读全文
posted @ 2017-12-26 12:02 mayer326 阅读(153) 评论(0) 推荐(0) 编辑
摘要: interface Factory { public static function getDB(); //接口里的类不用实现,下面的子类来具体实现} class MySQLFactory implements Factory { public static function getDB() { r 阅读全文
posted @ 2017-12-21 23:06 mayer326 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 在什么情况下可以使用B-tree索引 1、全值匹配的查询 order_sn='987654321000'; 2、匹配最左前缀的查询 order_sn order_date 联合索引,第一列可以利用索引 3、匹配列前缀查询 order_sn like '9876%' 匹配某一列的开头部分 4、匹配范围 阅读全文
posted @ 2017-12-21 16:01 mayer326 阅读(1221) 评论(0) 推荐(0) 编辑
摘要: 下载git,进入git命令行后配置用户名和邮箱 git config --global user.name cl90326 git config --global user.email 90cl@sina.com 创建版本库 cd f:/www/20171221 mkdir rrdai git in 阅读全文
posted @ 2017-12-21 14:47 mayer326 阅读(168) 评论(0) 推荐(0) 编辑
摘要: apache: 如果采用RPM包安装,安装路径应在 /etc/httpd目录下 apache配置文件:/etc/httpd/conf/httpd.conf Apache模块路径:/usr/sbin/apachectl web目录:/var/www/html 如果采用源代码安装,一般默认安装在/usr 阅读全文
posted @ 2017-12-15 12:48 mayer326 阅读(1549) 评论(0) 推荐(0) 编辑
摘要: MYD是存储数据的文件,MYI是索引文件。索引提高了查询速度,降低了增删改的速度,并非加的越多越好。索引的类型:1、key,普通索引2、unique key,唯一索引create table t12(name char(10),email char(20),key name(name),unique 阅读全文
posted @ 2017-12-15 12:44 mayer326 阅读(130) 评论(0) 推荐(0) 编辑