Comments (9)
@rexel-cn what is the value of td2.MaxSQLLength?
from driver-go.
@huskar-t 为配置文件中的配置参数,如下:
tdengine2:
url: td-1:6030
user: root
password: RexelRoot
replica: 1
maxSQLLength: 1048576
from driver-go.
i have tested locally and no errors appear, please print taosUri
from driver-go.
打印的url为:root:RexelRoot@tcp(td-1:6030)/log?maxSQLLength=1048576
下图为控制台日志截图:
from driver-go.
@rexel-cn
go 程序和 TDengine 分别运行在什么操作系统平台?看起来不像是同一台机器
from driver-go.
td运行环境:Ubuntu 18.04.6(docker容器)
go客户端运行环境:ubuntu 22.04(docker容器)
from driver-go.
package main
import (
"database/sql"
"fmt"
_ "github.com/taosdata/driver-go/v2/taosSql"
)
func main() {
url := "root:RexelRoot@tcp(td-1:6030)/log?maxSQLLength=1048576"
fmt.Println(url)
db, err := sql.Open("taosSql", url)
if err != nil {
panic(err)
}
defer db.Close()
err = db.Ping()
if err != nil {
panic(err)
}
}
试一下上面的代码是否出错
from driver-go.
可以添加下微信我们做下远程排查 : 15652223354
from driver-go.
先暂时关掉了,后面继续验证的时候再确认,多谢
from driver-go.
Related Issues (20)
- 3.1.0.0: tcp连接多次运行query失败,restful和ws连接正常 HOT 4
- v3.1.0.0: 客户端taosRestful访问,database/sql Scan timestamp列,时间异常 HOT 2
- invalid DSN: network address not terminated (missing closing brace) HOT 4
- runtime error: makeslice: len out of range HOT 2
- restful driver, not support Query(stmt, args...) HOT 1
- can't run on macbook m2 pro HOT 4
- 关于GO连接器taosRestful时区问题
- 执行SQL时报错: Undefined error: 0
- build constraints exclude all Go files in /root/go/pkg/mod/github.com/taosdata/driver-go/[email protected]/wrapper HOT 1
- 无法正确连接 db
- Tao驱动直接空指针 HOT 2
- go build failed after go mod tidy success. HOT 1
- 编译时提示无法找到taos.h HOT 6
- 集群三节点双副本时RPO不为0.
- Error when connecting to cluster through client.
- macOS交叉编译linux失败 HOT 1
- macos 编译失败, tdengine 2.2.0 版本 HOT 3
- InterpolateParams没有对[]byte和string类型的arg参数进行特殊处理
- 用taosWS方式连接提示 websocket: bad handshake HOT 1
- _ "github.com/taosdata/driver-go/v3/taosSql" 报错 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from driver-go.