网站首页 站内搜索

搜索结果

查询Tags标签: err,共有 632条记录
  • nodejs 操作sqlite数据库

    console.log(__dirname);// 当前文件所在的路径;const sqlite3 = require(sqlite3); // 引入 sqlite3 模块 const path = require(path); // 引入路径处理模块 const dbName = path.join(__dirname, test.db); // 获取当前运行目录下的 data.db 文件 // 打开数据库 con…

    2022/6/23 2:21:30 人评论 次浏览
  • Redis实现延迟队列的正确姿势

    在之前探讨延时队列的文章中我们提到了 redisson delayqueue 使用 redis 的有序集合结构实现延时队列,遗憾的是 go 语言社区中并无类似的库。不过问题不大,没有轮子我们自己造

    2022/6/23 2:20:11 人评论 次浏览
  • Golang示例续期锁:Redis+Channel+sync.Mutex

    package mainimport ("context""fmt""github.com/go-redis/redis""golang.org/x/sync/errgroup""log""sync""time" )func main() {NewRedis()fu1()time.Sleep(100 * time.Second) }var rdb *redis…

    2022/6/22 2:19:54 人评论 次浏览
  • redis.clients.jedis.exceptions.JedisDataException: ERR AUTH <password> called without any pass

    描述:java使用jedis连接服务器上的redis,遇到的报错。 问题: redis.clients.jedis.exceptions.JedisDataException: ERR AUTH <password> called without any password configured for the default user. Are you sure your configuration is correct? 翻译:没…

    2022/6/19 2:20:04 人评论 次浏览
  • npm install失败:npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree

    在安装npm时发生错误: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: awescnb@3.0.0 npm ERR! Found: eslint@6.8.0 npm ERR! node_modules/eslint npm ERR! dev eslint@"^6.8.0" from …

    2022/6/18 23:23:06 人评论 次浏览
  • 【深入理解TcaplusDB技术】入门Tcaplus SQL Driver

    【深入理解TcaplusDB技术】入门Tcaplus SQL Driver简介 TcaplusDB SQL Driver/C++ 是用于连接C++应用程序到TcaplusDB服务器的TcaplusDBConnector。用于以传统方式使用SQL语句的TcaplusDB服务器。 二进制安装 TcaplusDB SQL Driver/C++二进制发行版是以特定于平台的压缩格…

    2022/6/17 2:20:24 人评论 次浏览
  • Redis 中的原子操作(3)-使用Redis实现分布式锁

    Redis 中的分布式锁如何使用分布式锁的使用场景 使用 Redis 来实现分布式锁使用 set key value px milliseconds nx 实现 SETNX+Lua 实现使用 Redlock 实现分布式锁 锁的续租 看看 SETEX 的源码 为什么 Redis 可以用来做分布式锁 分布式锁如何选择 总结 参考Redis 中的分布…

    2022/6/16 2:21:28 人评论 次浏览
  • GO语言操作mysql数据库

    mysql库的安装: 直接在vscode终端运行:go get -u github.com/go-sql-driver/mysql下载完之后,导入包import ("database/sql""fmt"_ "github.com/go-sql-driver/mysql" )数据库初始化://定义全局变量db,方便之后对数据库操作 var db *s…

    2022/6/16 2:20:03 人评论 次浏览
  • 关于报错

    报错1 npm ERR! Missing script: "server" npm ERR! npm ERR! Did you mean this? npm ERR! npm run serve # run the "serve" package script npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm runnpm ERR! A complete log of…

    2022/6/13 23:23:45 人评论 次浏览
  • npm install 报错 ERR! gyp ERR! cwd D:\workspace\node_modules\node-sass错误解决/npm ERR! gyp verb `which

    一、问题描述: npm install 报错 ERR! gyp ERR! cwd D:\workspace\node_modules\node-sass npm ERR! gyp verb `which` failed Error: not found: python2 二、可能原因 nodejs与sass版本不匹配(可能性最大:解决办法见三)node无法下载sass依赖:解决办法:安装淘宝镜…

    2022/6/8 1:21:32 人评论 次浏览
  • CEL-GO 实践 - 练习

    Hello World 本文测试基于Google的CEL-GP CodeLab课程,按照所有语言的入门规则,先从一个"hello world"开始。 配置环境 func exercise1() {fmt.Println("=== Exercise 1: Hello World ===\n")env, err := cel.NewEnv()if err != nil {glog.Exitf(&q…

    2022/6/5 23:21:59 人评论 次浏览
  • NodeJS内置模块之fs模块

    NodeJS内置模块之fs模块读取文件const fs = require(fs) fs.readFile(../为学.txt,utf-8,function (err, dataStr) {if (err){console.log(err.message);}else {console.log(dataStr);} }) //如果是读取成功的话,err的值是null写入文件const fs=require(fs) fs.writeFile(…

    2022/6/5 1:22:56 人评论 次浏览
  • stm32CubeMX freertos 二值信号量

    freerots系统配置参考: http://www.javashuo.com/article/p-tkjzlcdb-na.html 其它保持默认。代码实现://将二值信号量设置为全局变量: //osSemaphoreId myBinarySem01Handle; //osStaticSemaphoreDef_t myBinarySem01ControlBlock; //赋值添加关键字保存在.h文件中 e…

    2022/6/2 23:21:12 人评论 次浏览
  • RabbitMQ——工作队列

    RabbitMQ——工作队列 一、任务队列/工作队列 (使用Go RabbitMQ客户端)我们编写程序从命名的队列发送和接收消息。在这一节中,我们将创建一个工作队列,该队列将用于在多个工人之间分配耗时的任务。 工作队列(又称任务队列)的主要思想是避免立即执行某些资源密集型任…

    2022/5/31 23:19:48 人评论 次浏览
  • mysql5.7执行sql语句成功,但是报错Err:1055

    无论执行什么sql语句都报错: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column information_schema.PROFILING.SEQ which is not functionally dependent on columns in GROUP BY clause; this is incompati…

    2022/5/28 2:19:47 人评论 次浏览
扫一扫关注最新编程教程