会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
野香蕉
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
12
下一页
2023年7月20日
my-batis 事务
摘要: ##事务 @Resource private TransactionTemplate transactionTemplate; boolean flag = transactionTemplate.execute(status -> { // do ... return true; }); @Tra
阅读全文
posted @ 2023-07-20 10:30 野香蕉
阅读(7)
评论(0)
推荐(0)
2021年12月23日
ssh建立通道本地链接线上数据库
摘要: ####到新公司让看代码学习,下载好代码找老员工 要数据库 直接丢给你 ssh -f root@8.111.66.225 -p 8888 -L 3306:rm-2z123456.mysql.rds.aliyuncs.com:3306 -N #####拿到这个先想到时利用navicate ssh链接
阅读全文
posted @ 2021-12-23 13:25 野香蕉
阅读(127)
评论(0)
推荐(0)
2021年8月10日
docker php 启动不了
摘要: ###使用docker-compose时出现 Interactive shell docker logs 容器id version: "2.0" services: nginx: image: nginx:latest ports: - "80:80" volumes: - ~/Projects/s
阅读全文
posted @ 2021-08-10 19:20 野香蕉
阅读(692)
评论(0)
推荐(1)
2021年7月17日
sql: unknown driver “mysql“
摘要: ###golang mysql 错误 sql: unknown driver “mysql“ (forgotten import?) 解决方法 golang中使用gorm连接mysql的时候会报错:sql: unknown driver "mysql" (forgotten import?) 需要在
阅读全文
posted @ 2021-07-17 11:03 野香蕉
阅读(503)
评论(0)
推荐(0)
2021年7月1日
pdf.js
摘要: ###下载pdf.js 下载 https://gitee.com/lovers_der/pdf.js.git <style> .contract-modal { position: absolute; right: 15%; width: 1000px; overflow: scroll; back
阅读全文
posted @ 2021-07-01 21:53 野香蕉
阅读(492)
评论(0)
推荐(0)
2021年6月23日
mysql 数据迁移
摘要: ##Mysql百万级数据迁移实战笔记 ###方案选择 ###mysqldump迁移 平常开发中,我们比较经常使用的数据备份迁移方式是用mysqldump工具导出一个sql文件,再在新数据库中导入sql来完成数据迁移。试验发现,通过mysqldump导出百万级量的数据库成一个sql文件,大概耗时几分钟
阅读全文
posted @ 2021-06-23 10:11 野香蕉
阅读(1551)
评论(0)
推荐(0)
2021年6月12日
TP5 redis 延迟队列
摘要: ###TP5.1 下载安装Redis 配置redis信息 <?php namespace app\common\redis; class RedisHandler { public $provider; //创建实例子 private static $_instance = null; //创建re
阅读全文
posted @ 2021-06-12 14:48 野香蕉
阅读(673)
评论(0)
推荐(0)
2021年2月27日
php date 时间差
摘要: ###date 时间 时间第二个参数0 1970-01-01 时间第二个参数是负数 小于1970-01-01 ###日期比较 strtotime() 转为 时间戳 date("Y-m-d",strtotime("-1 day")); date("Y-m-d",strtotime("-1 month"
阅读全文
posted @ 2021-02-27 12:20 野香蕉
阅读(228)
评论(0)
推荐(0)
2021年2月6日
array_merge 和 + 号的的区别
摘要: ###array_merge() array_merge() 将一个或多个数组合并起来,一个数组中的值附加在前一个数组的后面。返回作为结果数组 1.字符串键 后面的值会覆盖前面的一个值。 2.数字键,后面的值将不会覆盖原来的值而是附加到后面(数字键会重新分配,总是变成重零开始) 3.如果只给了一个数
阅读全文
posted @ 2021-02-06 22:27 野香蕉
阅读(247)
评论(0)
推荐(0)
2021年2月5日
apache 添加https后导致http无法访问
摘要: ###设置 config 设置 强制跳转 <VirtualHost *:80> DocumentRoot /usr/local/apache/htdocs/trip/public ServerName 域名 ServerAlias 域名 DirectoryIndex index.php index.
阅读全文
posted @ 2021-02-05 16:02 野香蕉
阅读(787)
评论(0)
推荐(0)
1
2
3
4
5
···
12
下一页
公告