引用来自:官方资料 参考来自 先创建一个类库 打开程序包管理器控制台 输入 Install-Package Microsoft.EntityFrameworkCore.SqlServer 回车(用的是SqlServer数据库) 等待安装完成继续输入 Install-Package Microsoft ...
分类:
数据库 时间:
2020-05-09 19:20:42
阅读次数:
90
db.appMsgCollection.aggregate([{$lookup:{from:"msgTypeCollection",localField:"message.templateTypeId",foreignField:"msgTypeId",as:"cname"}},{$match:{"createTime
分类:
其他好文 时间:
2020-05-09 00:48:39
阅读次数:
110
maven依赖 mysql mysql connector java 5.1.47 org.mybatis mybatis 3.5.2 junit junit 4.12 编写一个mybatis.xml配置文件 db.properties文件 driver=com.mysql.jdbc.Driver ...
分类:
其他好文 时间:
2020-05-09 00:39:23
阅读次数:
61
注:我的计算机win64 1.下载ibm_db安装压缩包,地址如下: https://files.pythonhosted.org/packages/3f/61/389c6decacfed61c2724005b8c2be61f2c699f731b53af13517e5a0e6e98/ibm_db 2 ...
分类:
数据库 时间:
2020-05-08 19:53:55
阅读次数:
360
YII2进行MYSQL数据库操作时出现Database Exception – yii\db\Exception SQLSTATE[HY000] [2002] No such file or directory错误的解决方法 在进行数据库操作时出现如下类似错误,实际则是PHP配置文件php.ini中 ...
分类:
数据库 时间:
2020-05-08 11:26:43
阅读次数:
97
获取用户数: Db::table('think_user')->count(); // 助手函数 db('user')->count(); 或者根据字段统计: Db::table('think_user')->count('id'); // 助手函数 db('user')->count('id'); ...
分类:
其他好文 时间:
2020-05-08 10:14:40
阅读次数:
151
Db::table('think_user') ->where('id','>',1) ->where('name','thinkphp') ->select(); Db::field('user.name,role.title') ->table('think_user user,think_ro ...
分类:
其他好文 时间:
2020-05-08 09:50:38
阅读次数:
53
1.安装 yum install mariadb-server -y 2.启动 systemctl start mariadb-server 3.设置开机启动systemctl enable mariadb-server 配置mariadb 1,命令 mysql_secure_installatio ...
分类:
数据库 时间:
2020-05-07 15:35:27
阅读次数:
94
Description: Flyway failed to initialize: none of the following migration scripts locations could be found: classpath:db/migration Action: Review the ...
分类:
其他好文 时间:
2020-05-07 13:43:30
阅读次数:
300
一套生产环境DB,每周日进行一次0级全备,其余每周6天都是增量备份。 但是磁盘告警,备份目录使用率>90%, 检查备份脚本是定期删除8天前的过期备份信息!!! 发现的问题: 最早的备份信息是3周前的备份信息??? 删除脚本失效了??? 1. 准备操作,手工执行清理8天前的rman备份信息。 run ...
分类:
其他好文 时间:
2020-05-07 13:33:11
阅读次数:
125