Giter Club home page Giter Club logo

Comments (9)

huskar-t avatar huskar-t commented on June 15, 2024

@rexel-cn what is the value of td2.MaxSQLLength?

from driver-go.

rexel-cn avatar rexel-cn commented on June 15, 2024

@huskar-t 为配置文件中的配置参数,如下:
tdengine2:
url: td-1:6030
user: root
password: RexelRoot
replica: 1
maxSQLLength: 1048576

from driver-go.

huskar-t avatar huskar-t commented on June 15, 2024

i have tested locally and no errors appear, please print taosUri

from driver-go.

rexel-cn avatar rexel-cn commented on June 15, 2024

打印的url为:root:RexelRoot@tcp(td-1:6030)/log?maxSQLLength=1048576
下图为控制台日志截图:
image

from driver-go.

huskar-t avatar huskar-t commented on June 15, 2024

@rexel-cn
go 程序和 TDengine 分别运行在什么操作系统平台?看起来不像是同一台机器

from driver-go.

rexel-cn avatar rexel-cn commented on June 15, 2024

td运行环境:Ubuntu 18.04.6(docker容器)
go客户端运行环境:ubuntu 22.04(docker容器)

from driver-go.

huskar-t avatar huskar-t commented on June 15, 2024
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.

yu285 avatar yu285 commented on June 15, 2024

可以添加下微信我们做下远程排查 : 15652223354

from driver-go.

rexel-cn avatar rexel-cn commented on June 15, 2024

先暂时关掉了,后面继续验证的时候再确认,多谢

from driver-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.