摘要: 1. 数据库备份方案 1)没备份,跑路~ 2)全量备份+增量备份 如果不小心“删库”,可以这么恢复: a. 将最近一次全量备份的全库找到,拷贝回来(文件一般比较大),解压,应用; b. 将最近一次全量备份后,每一天的增量binlog找到,拷贝回来(文件较多),依次重放; c. 将最近一次增量备份后, 阅读全文
posted @ 2019-04-15 21:38 Jtianlin 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 1. Spring的本质是为了提供各种服务,以帮助我们简化基于POJO的Java应用程序开发。 2. Spring缓存注解@Cacheable、@CacheEvict、@CachePut使用 Spring Cache扩展:注解失效时间+主动刷新缓存 3. @Cacheable 过期时间设置,cron 阅读全文
posted @ 2019-04-15 17:54 Jtianlin 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1. field like str 2. field regex pattern 3. LOCATE('substr',str,pos) 4. POSITION('substr' IN `field`)方法 5. INSTR(`str`,'substr')方法 6. FIND_IN_SET(str1 阅读全文
posted @ 2019-04-15 14:06 Jtianlin 阅读(24612) 评论(0) 推荐(0) 编辑