摘要:
在使用MySQL时,若表中含自增字段(auto_increment类型),则向表中insert一条记录后,可以调用last_insert_id()来获得最近insert的那行记录的自增字段值 $mdb->lastInsertId(); 但事实上,使用last_insert_id()时有很多注意事项, 阅读全文
posted @ 2016-09-30 18:33
服务号AwesomeAITools
阅读(909)
评论(0)
推荐(0)
摘要:
需要主键一致 PRIMARY KEY (id) PRIMARY KEY (id, ts) 坑: https://blog.xupeng.me/2013/10/11/mysql-replace-into-trap/ 可以看到 MySQL 说 “2 rows affected”,可是明明是只写一条记录, 阅读全文
posted @ 2016-09-30 18:32
服务号AwesomeAITools
阅读(415)
评论(0)
推荐(0)
摘要:
sharding Vertical Sharding 把数据分散到多台物理机(我们称之为Shard) 实现Sharding需要解决一系列关键的技术问题,这些问题主要包括:切分策略、节点路由、全局主键生成、跨节点排序/分组/表关联、多数据源事务处理和数据库扩容等 因为表多而数据多,这时候适合使用垂直切 阅读全文
posted @ 2016-09-30 18:31
服务号AwesomeAITools
阅读(471)
评论(0)
推荐(0)
摘要:
一、创建并授权用户 在每一台(主)服务器上创建一个用户,并为之授权,使它们可以互相访问彼此的数据库 在Server-1上: 创建一个充许Server-2来访问的用户server2,密码为:server2 mysql> GRANT REPLICATION SLAVE ON *.* > TO ‘serv 阅读全文
posted @ 2016-09-30 18:31
服务号AwesomeAITools
阅读(248)
评论(0)
推荐(0)
摘要:
Service providers are the central place of all Laravel application bootstrapping. Your own application, as well as all of Laravel's core services are 阅读全文
posted @ 2016-09-30 18:30
服务号AwesomeAITools
阅读(309)
评论(0)
推荐(0)
摘要:
70多个G的电子书。百度网盘分享了几次被屏蔽了,360网盘每个文件夹最多只能分享2000个文件,所以只能分成多个文件夹分享。如果大家知道更好的分享方式,欢迎留言相告,多谢:http://yunpan.cn/cdSaEEY4EbCv3 访问密码 40d5http://yunpan.cn/cdSa5L8 阅读全文
posted @ 2016-09-30 18:30
服务号AwesomeAITools
阅读(1509)
评论(1)
推荐(0)
摘要:
App\Exceptions\Handler class is where all exceptions triggered by your application are logged and then rendered back to the user. We'll dive deeper in 阅读全文
posted @ 2016-09-30 18:29
服务号AwesomeAITools
阅读(930)
评论(0)
推荐(0)
摘要:
managing class dependencies and performing dependency injection. Dependency injection is a fancy phrase that essentially means this: class dependencie 阅读全文
posted @ 2016-09-30 18:29
服务号AwesomeAITools
阅读(335)
评论(0)
推荐(0)
摘要:
Where Is The Models Directory? app directory by default 其中 app:,core code of your application, almost all of the classes in your application will be i 阅读全文
posted @ 2016-09-30 18:28
服务号AwesomeAITools
阅读(425)
评论(0)
推荐(0)
摘要:
以配置java环境变量为例 目录 [隐藏] 目录 1 修改/etc/profile文件2 修改用户目录下的.bash_profile3 修改.bashrc文件4 直接在shell下设置5 查看环境变量6 删除环境变量 [编辑]修改/etc/profile文件 此法对所有用户生效 在文件末尾加入以下内 阅读全文
posted @ 2016-09-30 18:27
服务号AwesomeAITools
阅读(315)
评论(0)
推荐(0)

浙公网安备 33010602011771号