Giter Site home page Giter Site logo

Comments (4)

teckick avatar teckick commented on May 8, 2024

您好, 感谢反馈!

对于问题1, 还需要您看下gaea的日志是否有相关报错信息.

对于问题2, 目前gaea不支持DDL, 一般是由DBA直接在MySQL实例上执行建表等操作.

from gaea.

Feigerlan avatar Feigerlan commented on May 8, 2024

问题1(不带参数-A的情况下才会出现这个问题,如果带了-A 参数 可以正常show tables和select *等等):
mysql连接show tables报错现象如下:
MySQL [cas]> show tables;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 10007
Current database: cas

日志如下:
[root@sh-loancore-clusterdb-dapseq logs]# tail gaea.log.wf
[2020-07-23 08:58:34] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [WARN] [900000001] [github.com/XiaoMi/Gaea/backend.(*Slice).GetConn:slice.go:88] get connection from slave failed, try to get from master, error: no database
[2020-07-23 08:58:34] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [WARN] [900000001] [github.com/XiaoMi/Gaea/proxy/server.(*Session).Run:session.go:240] Session write response error, connId: 10006, err: Conn 10006: Write(header) failed: write tcp4 172.16.1.24:13306->172.16.1.93:52408: write: broken pipe
[2020-07-23 08:58:40] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [WARN] [900000001] [github.com/XiaoMi/Gaea/backend.(*Slice).GetConn:slice.go:88] get connection from slave failed, try to get from master, error: no database
[2020-07-23 08:58:40] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [WARN] [900000001] [github.com/XiaoMi/Gaea/backend.(*Slice).GetConn:slice.go:88] get connection from slave failed, try to get from master, error: no database
[2020-07-23 08:58:40] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [WARN] [900000001] [github.com/XiaoMi/Gaea/backend.(*Slice).GetConn:slice.go:88] get connection from slave failed, try to get from master, error: no database
[2020-07-23 08:58:40] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [WARN] [900000001] [github.com/XiaoMi/Gaea/proxy/server.(*Session).Run:session.go:240] Session write response error, connId: 10007, err: Conn 10007: Write(header) failed: write tcp4 172.16.1.24:13306->172.16.1.93:52414: write: broken pipe
[2020-07-23 08:58:40] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [WARN] [900000001] [github.com/XiaoMi/Gaea/backend.(*Slice).GetConn:slice.go:88] get connection from slave failed, try to get from master, error: no database
[2020-07-23 08:58:40] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [WARN] [900000001] [github.com/XiaoMi/Gaea/backend.(*Slice).GetConn:slice.go:88] get connection from slave failed, try to get from master, error: no database
[2020-07-23 08:58:40] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [WARN] [900000001] [github.com/XiaoMi/Gaea/backend.(*Slice).GetConn:slice.go:88] get connection from slave failed, try to get from master, error: no database
[2020-07-23 08:58:40] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [WARN] [900000001] [github.com/XiaoMi/Gaea/proxy/server.(*Session).Run:session.go:240] Session write response error, connId: 10008, err: Conn 10008: Write(header) failed: write tcp4 172.16.1.24:13306->172.16.1.93:52416: write: broken pipe
[root@sh-loancore-clusterdb-dapseq logs]# tail gaea.log
[2020-07-23 08:58:34] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [DEBUG] [900000001] [github.com/XiaoMi/Gaea/proxy/server.(*Session).Close:session.go:196] client closed, 10006
[2020-07-23 08:58:34] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [NOTICE] [900000001] [main.main.func1:main.go:90] Ignore broken pipe signal
[2020-07-23 08:58:40] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [NOTICE] [900000001] [main.main.func1:main.go:90] Ignore broken pipe signal
[2020-07-23 08:58:40] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [DEBUG] [900000001] [github.com/XiaoMi/Gaea/proxy/server.(*Session).Close:session.go:196] client closed, 10007
[2020-07-23 08:58:40] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [NOTICE] [900000001] [main.main.func1:main.go:90] Ignore broken pipe signal
[2020-07-23 08:58:40] [gaea_proxy] [sh-loancore-clusterdb-dapseq] [DEBUG] [900000001] [github.com/XiaoMi/Gaea/proxy/server.(*Session).Close:session.go:196] client closed, 10008

问题2 :
想请教一下这块gaea在小米的使用场景后续有支持DDL的计划吗?

from gaea.

teckick avatar teckick commented on May 8, 2024

客户端使用的是哪个版本? 使用其他客户端测试会出现同样问题吗?

from gaea.

Feigerlan avatar Feigerlan commented on May 8, 2024

mysql --version
mysql Ver 15.1 Distrib 10.1.41-MariaDB, for Linux (x86_64) using readline 5.1

from gaea.

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.