北漂小兄弟的博客

北漂小兄弟的博客

菜根笔记

阿里巴巴mysql数据库设计,查询规范

阿里巴巴mysql数据库设计,查询规范

2017 年 11 月 13 日 北漂小兄弟 Comments 1 comment

MySQL数据库 (一)建表规约 1.【强制】表达是与否概念的字段,必须使用is_xxx的方式命名,数据类型是unsignedtinyint(1表示是,0表示否…

Read More Read More

The page has expired due to inactivity. Please refresh and try again laravel 5

The page has expired due to inactivity. Please refresh and try again laravel 5

2017 年 11 月 13 日 北漂小兄弟 Comments 0 Comment

The page has expired due to inactivity. Please refresh and try again 方法1: {!! cs…

Read More Read More

PHP 获取访客真实IP

PHP 获取访客真实IP

2017 年 10 月 27 日 北漂小兄弟 Comments 0 Comment

function get_real_ip(){ if(!empty($_SERVER[‘HTTP_CLIENT_IP’])){ $ip = $_SERVER[‘…

Read More Read More

mysql 5.7及以上版本 windows 版本正确安装姿势

mysql 5.7及以上版本 windows 版本正确安装姿势

2017 年 9 月 27 日 北漂小兄弟 Comments 0 Comment

安装 (更新2018.10.07) 执行install前记得先执行下面这条命令 在5.7版本以上的时候如果不执行这条命令,下次启动的时候会报诸如这种类型的错误“…

Read More Read More

linux dns 解析过程命令

linux dns 解析过程命令

2017 年 9 月 26 日 北漂小兄弟 Comments 0 Comment

dig +trace inbeijing.org  

laravel获取所有的路由列表

laravel获取所有的路由列表

2017 年 9 月 14 日 北漂小兄弟 Comments 0 Comment

laravel 查看路由列表代码: 1、 app()->getRoutes(); 2 $routes = Route::getRoutes() forea…

Read More Read More

laravel ELOQUENT 关联表指定列的写法

laravel ELOQUENT 关联表指定列的写法

2017 年 9 月 14 日 北漂小兄弟 Comments 0 Comment

写法一 User::with([‘order’, => function() use ($query) { $query->select(‘orde…

Read More Read More

laravel严格限制输入的日期是年月日时分秒格式

laravel严格限制输入的日期是年月日时分秒格式

2017 年 9 月 12 日 北漂小兄弟 Comments 0 Comment

‘order_time’ => ‘date_format:”Y-m-d H:i:s”|required’,  

laravel 5.5 验证码不显示问题

laravel 5.5 验证码不显示问题

2017 年 9 月 8 日 北漂小兄弟 Comments 0 Comment

Internal GD font () not available. laravel 5.5 中 Filesystem::files 不再返回绝对路径。 ven…

Read More Read More

git 存储用户名密码

git 存储用户名密码

2017 年 9 月 8 日 北漂小兄弟 Comments 1 comment

当你登陆过一次之后,执行如下命令即可,保存用户名密码。   git config –global credential.helper store &…

Read More Read More

remote: error: insufficient permission for adding an object to repository

remote: error: insufficient permission for adding an object to repository

2017 年 9 月 6 日 北漂小兄弟 Comments 0 Comment

remote: error: insufficient permission for adding an object to repository error:…

Read More Read More

代码有趣注释收集

代码有趣注释收集

2017 年 9 月 5 日 北漂小兄弟 Comments 1 comment

// // .::::. // .::::::::. // ::::::::::: // ..:::::::::::’ // ‘::::::::::::’ //…

Read More Read More

MySql InnoDB的行锁和表锁

MySql InnoDB的行锁和表锁

2017 年 9 月 1 日 北漂小兄弟 Comments 0 Comment

MySql InnoDB的行锁和表锁 首先如果使用锁,必须在事务内上锁“for update”!! 如果上了锁,那么在并发很高的情况下,必须要这个带锁的事务执行…

Read More Read More

linux grep 多个关键字

linux grep 多个关键字

2017 年 8 月 31 日 北漂小兄弟 Comments 0 Comment

或的关系 grep -E “key1|key2|key3…..keyn” y 且的关系 grep key1 | grep key2 | grep key4 …

Read More Read More

vim 批量注释

vim 批量注释

2017 年 8 月 30 日 北漂小兄弟 Comments 0 Comment

ctrl+v 进入列编辑模式,向下或向上移动光标,选中需要注释的行,然后按大写的I(按住shift,或者调整为大写输入都可以),再插入注释符,比如”…

Read More Read More

mysql 大分页优化

mysql 大分页优化

2017 年 8 月 25 日 北漂小兄弟 Comments 0 Comment

大分页优化 分页最靠后,查询时间越慢,因为扫描行数会越多。 两个方案: 1. 其实到最后的页码意义不大,用户也很难翻到,是不是可以限制页码(这个要和pm沟通)。…

Read More Read More

mysql子查询用join代替

mysql子查询用join代替

2017 年 8 月 25 日 北漂小兄弟 Comments 0 Comment

子查询 用 join 代替 有SQL语句:select * from table_a ( select * from table_b  where id=1) …

Read More Read More

mysql这个字段是否适合建立索引?

mysql这个字段是否适合建立索引?

2017 年 8 月 25 日 北漂小兄弟 Comments 0 Comment

一个字段是否合适建索引,一个重要的参考是区分度。区分度是指字段中的值不重复的比例,这个比例越大,越适合建索引。区分度= count( distinct(col)…

Read More Read More

mysql索引最左原则

mysql索引最左原则

2017 年 8 月 25 日 北漂小兄弟 Comments 0 Comment

最左匹配原则(原理可看第二篇索引结构)。 注意:有复合索引complex(a,b,c) a)  有查询a=1 and b>1 and c=2,可以用到索引…

Read More Read More

413 Request Entity Too Large

413 Request Entity Too Large

2017 年 8 月 18 日 北漂小兄弟 Comments 0 Comment

这个问题主要是出现在nginx服务器上面,问题在于nginx默认body发送数据为1M所以如果你大于1M可能就会出现这个。 在nginx.conf里面添加 cl…

Read More Read More

Posts navigation

OLDER POSTS
NEWER POSTS

站内搜索

分类

  • ARTS
  • Golang
  • HTTP
  • JavaScript
  • laravel
  • LINUX
  • MySQL
  • PHP
  • python
  • rabbitMQ从0到0.99
  • 未分类技术文章
  • 树莓派(raspberry pi)
  • 随笔

近期文章

  • FFmpeg 视频剪辑常用命令 2025 年 5 月 22 日
  • FFMPEG常用命令 2024 年 11 月 25 日
  • 已经开了全局代理还是安装不上? 2024 年 10 月 29 日
  • GO语言里channel的阻塞机制 2024 年 9 月 29 日
  • golang 遍历当前目录下的制定扩展名文件,包括子目录 2024 年 1 月 17 日
  • 程序员的30个坏习惯 2024 年 1 月 15 日
  • mac上如何双开微信 2023 年 12 月 17 日
  • 终端内查看天气预报 curl wttr.in 2023 年 12 月 13 日
  • go 切片表达式介绍 2023 年 10 月 7 日
  • golang Prinf详细使用介绍 2023 年 5 月 24 日
  • golang APP版本号比对大小方法 2023 年 5 月 15 日
  • golang strings.Builder 与拼接字符串的区别 2023 年 3 月 17 日
  • golang 将秒转化为小时分钟 2023 年 1 月 28 日
  • GO谚语你知道多少 2022 年 8 月 9 日
  • linux 快速清空一个文件命令 2022 年 5 月 20 日

归档

  • 2025 年 5 月
  • 2024 年 11 月
  • 2024 年 10 月
  • 2024 年 9 月
  • 2024 年 1 月
  • 2023 年 12 月
  • 2023 年 10 月
  • 2023 年 5 月
  • 2023 年 3 月
  • 2023 年 1 月
  • 2022 年 8 月
  • 2022 年 5 月
  • 2021 年 4 月
  • 2020 年 11 月
  • 2020 年 7 月
  • 2020 年 6 月
  • 2020 年 5 月
  • 2020 年 4 月
  • 2020 年 3 月
  • 2020 年 2 月
  • 2020 年 1 月
  • 2019 年 12 月
  • 2019 年 11 月
  • 2019 年 10 月
  • 2019 年 9 月
  • 2019 年 8 月
  • 2019 年 7 月
  • 2019 年 6 月
  • 2019 年 5 月
  • 2019 年 3 月
  • 2019 年 2 月
  • 2019 年 1 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 10 月
  • 2018 年 9 月
  • 2018 年 8 月
  • 2018 年 7 月
  • 2018 年 6 月
  • 2018 年 5 月
  • 2018 年 4 月
  • 2018 年 3 月
  • 2018 年 2 月
  • 2018 年 1 月
  • 2017 年 11 月
  • 2017 年 10 月
  • 2017 年 9 月
  • 2017 年 8 月
  • 2017 年 7 月
  • 2017 年 6 月
  • 2017 年 5 月
  • 2017 年 1 月
  • 2016 年 12 月
  • 2016 年 5 月
  • 2016 年 2 月
  • 2015 年 12 月
  • 2015 年 11 月
  • 2015 年 10 月
  • 2015 年 9 月
  • 2015 年 8 月
  • 2015 年 7 月
  • 2015 年 6 月
  • 2015 年 5 月
  • 2015 年 4 月
  • 2015 年 3 月
  • 2015 年 2 月
  • 2015 年 1 月
  • 2014 年 12 月
  • 2014 年 11 月
  • 2014 年 10 月
  • 2014 年 9 月
  • 2014 年 8 月
  • 2014 年 6 月
  • 2014 年 5 月
  • 2014 年 4 月
  • 2014 年 3 月
  • 2014 年 2 月
  • 2014 年 1 月
  • 2013 年 12 月
  • 2013 年 11 月
  • 2013 年 10 月
  • 2013 年 9 月
  • 2013 年 8 月
  • 2013 年 7 月
  • 2013 年 6 月
  • 2013 年 5 月
  • 2013 年 4 月
© 2025 | Proudly Powered by WordPress | Theme: Nisarg 京ICP备12015649号-1