摘要: 1.vim /etc/my.cnf[mysqld]skip-grant-tables ##追加此行,跳过权限表, 2.重启mysqlsystemctl restart mysqld 3.mysql 登陆mysqlmysql> use mysql;mysql> UPDATE user SET Pass 阅读全文
posted @ 2019-10-27 20:06 赵志远的博客 阅读(86) 评论(0) 推荐(0)
摘要: 注意事项:1. 卸载yum MYSQLsystemctl status mysqlsystemctl stop mysqlsystemctl disable mysqld rpm -qa | grep -i mysqlyum remove mysql-community-server-5.6.40- 阅读全文
posted @ 2019-10-27 20:06 赵志远的博客 阅读(94) 评论(0) 推荐(0)
摘要: 1安装依赖包yum -y install gcc gcc-c++ autoconf automake yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel 2安装Gityum install git 3 安装clon 阅读全文
posted @ 2019-10-27 20:05 赵志远的博客 阅读(96) 评论(0) 推荐(0)
摘要: function lst(){ //定义大小王 $arr=[501,502]; for ($i=100;$i<=400;$i+=100){ $arr=array_merge($arr,range($i+1,$i+13)); } $mon=[[],[],[],[]]; //54张牌发给4个人 每人13 阅读全文
posted @ 2019-10-27 20:05 赵志远的博客 阅读(344) 评论(0) 推荐(0)
摘要: 1:创建一个要提交的文件2 git init 初始化 3 git remote add origin https://github.com/maohongli/cang.git 建立远程连接4 git status5 git add -A 创建6 git commit -m "是" 7 git pu 阅读全文
posted @ 2019-10-27 20:04 赵志远的博客 阅读(141) 评论(0) 推荐(0)
摘要: //表单@if($v['sex']==0) <td class="se" ss="{{$v['sex']}}" id="{{$v['id']}}" >男</td> @elseif($v['sex']==1) <td class="se" ss="{{$v['sex']}}" id="{{$v['id 阅读全文
posted @ 2019-10-27 20:03 赵志远的博客 阅读(293) 评论(0) 推荐(0)
摘要: 表单//@foreach($res as $k=>$v) <tr id="{{$v->id}}" > <td>{{$v->id}}</td> <td >{{$v->tye}}</td> <td fd="name" > {{$v->name}}</td> <td><a href="#" class=" 阅读全文
posted @ 2019-10-27 20:02 赵志远的博客 阅读(147) 评论(0) 推荐(0)
摘要: <?phpclass db{ public $table=null; public $pdo; public $where=null; //where 条件 public $field=null; //要查询的条件 public function __construct() { $this->pdo 阅读全文
posted @ 2019-10-27 20:01 赵志远的博客 阅读(123) 评论(0) 推荐(0)
摘要: function ad(){ $res=DB::table("category")->get(); $res= json_encode($res); $res= json_decode($res,1); $arr= $this->gettree($res,0); var_dump($arr);} f 阅读全文
posted @ 2019-10-27 20:00 赵志远的博客 阅读(101) 评论(0) 推荐(0)
摘要: //登陆控制器 function actionLogin(){ $name=Yii::$app->request->post("name"); $pass=Yii::$app->request->post("pass"); $res= Yii::$app->db->createCommand("se 阅读全文
posted @ 2019-10-27 19:57 赵志远的博客 阅读(83) 评论(0) 推荐(0)