自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 Mysql报错 [Err] 1271 - Illegal mix of collations for operation 'UNION'

查看一下表的编码show create table user_table;将其转成utf8,命令如下alter table user_table  convert to character set utf8; 当然还可以设置mysql的客户端和服务器的默认编码vi /etc/mysql/my.conf在[mysql] 下面 添加  default-character-s...

2018-08-29 16:02:17 5110

原创 PHP file_put_contents() failed to open stream: Protocol error

解决方案:1、文件名非法字符                  2、文件夹没有权限

2018-08-16 16:48:05 1740

原创 rm .git/refs/remotes/origin/master

$ git pullremote: Counting objects: 15, done.remote: Compressing objects: 100% (15/15), done.remote: Total 15 (delta 10), reused 0 (delta 0)Unpacking objects: 100% (15/15), done.error: cannot lock ref...

2018-07-04 14:14:32 4323

转载 Laravel 5 中 try catch 问题:无法检测到 Exception

最近一个项目中,尝试使用try catch,发现一直没有成功try{ var_dump($val);}catch (Exception $e){ var_dump($e);}在php中,这段代码应该会打印$e的值。然而在Laravel 5却不会。这是因为Laravel 5强制使用了PSR标准,必须使用正确的namespace。所以要使用try catch的语法,要么代码在最开头使用 us...

2018-05-10 15:02:32 1607

转载 windows 在sublime text 3中安装sublimelinter-php

1.安装SublimeLinter2.安装SublimeLinter-php3.安装php4.Preference->Package Settings->SublimeLinter->Settings - user,添加如下内容:[php] view plain copy{            "lint_mode": "load_save",          "paths"...

2018-04-27 11:29:55 411

转载 Homestead安装报错 Your VM has become “inaccessible.” Unfortunately

时间:2017-02环境:win7(64bit)执行 vagrant upYour VM has become “inaccessible.” Unfortunately, this is a critical error with VirtualBox that Vagrant can not cleanly recover from. Pleas

2018-01-22 17:05:15 1186

转载 Homestead安装报错 in ` gsub': invalid byte sequence in GBK

时间:2017-02环境:win7(64bit)D:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.8.6/plugins/provisioners/shell/provisioner.rb:164:in`gsub': invalid byte sequence in GBK (ArgumentError)解决方案:

2018-01-22 16:37:27 740

转载 Homestead环境报错Bringing machine ‘default’ up with ‘virtualbox’ provider…

时间:2017-02环境:win7(64bit)Bringing machine ‘default’ up with ‘virtualbox’ provider…Your VM has become “inaccessible.” Unfortunately, this is a critical errorwith VirtualBox that Vagran

2018-01-22 16:17:11 4748 1

转载 Homestead环境报错 There was an error while executing `VBoxManage`

时间:2018-01-22环境:win7(64bit)第一种情况$ vagrant upThere was an error while executing `VBoxManage`, a CLI used by Vagrantfor controlling VirtualBox. The command and stderr is shown below.Command: [...

2018-01-22 15:52:06 5841 1

原创 Homestead环境报错Warning: Authentication failure. Retrying...

时间:2018-01-22环境:win7(64bit)执行 vagrant up==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 192.168.137.6:22 default: SSH username: vagrant

2018-01-22 15:45:18 1110

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除