北漂小兄弟的博客

北漂小兄弟的博客

菜根笔记

MySQL 几个不常用但有用的小技巧

MySQL 几个不常用但有用的小技巧

2019 年 1 月 23 日 北漂小兄弟 Comments 0 Comment

创建一个新表从一个已存在的表(复制一张表结构) create table user like old-db.user; 复制一张表,结构和数据 create t…

Read More Read More

codeigniter(ci) where not null

codeigniter(ci) where not null

2019 年 1 月 23 日 北漂小兄弟 Comments 0 Comment

ci框架的where not null的写法 $data = $this->db->where(‘name is not null’)->ge…

Read More Read More

mysql事务 select会自动加锁吗

mysql事务 select会自动加锁吗

2019 年 1 月 17 日 北漂小兄弟 Comments 1 comment

mysql事务 select会自动加锁吗? 总结:mysql事务select 只是进行了隔离,保证数据的一致性,并没有加锁,如果要加锁可以用for update…

Read More Read More

localStorage的简单使用方法

localStorage的简单使用方法

2019 年 1 月 16 日 北漂小兄弟 Comments 0 Comment
Invalid or non-existent PDO subdriver

Invalid or non-existent PDO subdriver

2019 年 1 月 12 日 北漂小兄弟 Comments 0 Comment

数据库连接为pdo的时候必须指定dsn ‘dsn’ => ‘mysql:host=localhost;dbname=your-db-name’,

php 怎样获取类的成员方法访问权限

php 怎样获取类的成员方法访问权限

2019 年 1 月 11 日 北漂小兄弟 Comments 0 Comment

class demoClass(){ public function pub() { } private function pr() { }}$reflecti…

Read More Read More

linux 更改时区为中国上海时区

linux 更改时区为中国上海时区

2018 年 12 月 24 日 北漂小兄弟 Comments 0 Comment

sudo timedatectl set-timezone ‘Asia/Shanghai’

mysql 允许远程访问

mysql 允许远程访问

2018 年 12 月 24 日 北漂小兄弟 Comments 0 Comment

vim /etc/mysql/mysql.conf.d/mysql.cnf 添加bind-address 0.0.0.0 进入mysql控制台执行赋权限语句gr…

Read More Read More

linux命令行小火车

linux命令行小火车

2018 年 12 月 21 日 北漂小兄弟 Comments 0 Comment

#sudo apt install sl #LS

linux命令行忽略大小写

linux命令行忽略大小写

2018 年 12 月 21 日 北漂小兄弟 Comments 0 Comment

sudo echo “set completion-ignore-case on” >> ~/.inputrc

linux 创建软连接

linux 创建软连接

2018 年 12 月 21 日 北漂小兄弟 Comments 0 Comment

ln -s 源文件 目标文件。

composer file_put_contents(./composer.json): failed to open stream: Permission denied

composer file_put_contents(./composer.json): failed to open stream: Permission denied

2018 年 12 月 20 日 北漂小兄弟 Comments 0 Comment

composer file_put_contents(./composer.json): failed to open stream: Permission d…

Read More Read More

ubuntu mysql 默认密码

ubuntu mysql 默认密码

2018 年 12 月 20 日 北漂小兄弟 Comments 0 Comment

ubuntu mysql 默认密码是什么

linux 安装ccat 代替cat

linux 安装ccat 代替cat

2018 年 12 月 20 日 北漂小兄弟 Comments 0 Comment

ccat 是一个很好的插件,用法和cat一样,只是添加了高亮显示,看起来舒服 。 github:https://github.com/jingweno/ccat…

Read More Read More

phpstorm language level

phpstorm language level

2018 年 12 月 17 日 北漂小兄弟 Comments 0 Comment

phpstorm 不识别php7以上版本“空合并运算符??”的解决方案 php7 ??在phpstorm 提示语法错误问题解决 在phpstsorm 设置里面 …

Read More Read More

MySQL8.0版本以上不支持client客户端连接

MySQL8.0版本以上不支持client客户端连接

2018 年 12 月 5 日 北漂小兄弟 Comments 0 Comment

执行如下修改 ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘p…

Read More Read More

redis 关闭服务

redis 关闭服务

2018 年 12 月 5 日 北漂小兄弟 Comments 0 Comment

redis关闭 redis-cli -h 127.0.0.1 -p 6379 shutdown

linux xz 命令安装

linux xz 命令安装

2018 年 11 月 8 日 北漂小兄弟 Comments 0 Comment

https://tukaani.org/xz/ 下载压缩包, ./configure  make sudo make install    

gd-jpeg: JPEG library reports unrecoverable error:

gd-jpeg: JPEG library reports unrecoverable error:

2018 年 11 月 6 日 北漂小兄弟 Comments 0 Comment

jpeglib 换6b版本试试!  

php 接口返回null处理为空string

php 接口返回null处理为空string

2018 年 10 月 26 日 北漂小兄弟 Comments 0 Comment

if(!empty($result) && is_array($result)){ array_walk_recursive($result, …

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