摘要: 主要是由于跨域问题,chrome 安装插件chrome中跨域问题,可以安装插件解决, 插件地址 https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi 阅读全文
posted @ 2017-03-09 22:04 茫海 阅读(1884) 评论(0) 推荐(0) 编辑
摘要: 从laravel入口文件index里面外面不难定位到Illuminate\Foundation\Http\Kernel的handle方法,同样也不难发现handle方法的核心是 继续跟踪这个方法 今天我们要讨论的就是方法中的$this->bootstrap(); 首先,我们先确定这个方法中的$thi 阅读全文
posted @ 2017-01-12 10:50 茫海 阅读(984) 评论(0) 推荐(0) 编辑
摘要: 今天需要通过csv上传大量数据到数据库 直接逐行执行insert效率极其低下 后面通过拼接insert,稍微提高了些许效率,但依然不满足 最后发现,把这些插入放入同一个事务里面可以大大提高效率 beginTransaction insert..... insert..... insert..... 阅读全文
posted @ 2017-01-04 10:52 茫海 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 1,安装 2,配置中国全量镜像 使用如下命令可以看到默认的包地址是{"type":"composer","url":"https?:\/\/packagist.org","allow_ssl_downgrade":true} 使用如下命令设置中国全量镜像 3,常用命令 阅读全文
posted @ 2016-11-22 21:33 茫海 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 1.修改配置文件 vim /etc/my.cnf 在[mysqld]节点添加 skip-grant-tables 2.重启mysql 3.用空密码进入 mysql -uroot 执行 update mysql.user set authentication_string=password('123' 阅读全文
posted @ 2016-11-21 22:46 茫海 阅读(4616) 评论(1) 推荐(1) 编辑
摘要: git push -u origin mastererror: The requested URL returned error: 403 Forbidden while accessing https://github.com/hjyoung/php-redis-in-action.git/inf 阅读全文
posted @ 2016-11-10 23:14 茫海 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 找不到/tmp/mysql.sock这个文件,需要查找/tmp/mysql.sock文件位置,并在/etc/my.cnf里面配置 [client]socket=/var/lib/mysql/mysql.sock #实际的文件,不配做默认/tmp/mysql.sock 阅读全文
posted @ 2016-11-04 16:24 茫海 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 来源:http://blog.rekfan.com/articles/186.html 我使用了第4条解决了问题 1.可能是/usr/local/mysql/data/rekfan.pid文件没有写的权限 解决方法 :给予权限,执行 “chown -R mysql:mysql /var/data” 阅读全文
posted @ 2016-11-04 16:17 茫海 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 出现标题所示错误时设置如下参数可以解决!set @@global.show_compatibility_56=ON; 阅读全文
posted @ 2016-11-03 11:31 茫海 阅读(620) 评论(0) 推荐(0) 编辑