kingshard icon indicating copy to clipboard operation
kingshard copied to clipboard

A high-performance MySQL proxy

Results 107 kingshard issues
Sort by recently updated
recently updated
newest added

执行sql ``` REPLACE INTO `a`.`b` ( `id`, `content` ) VALUES ( '000034621b86494c8702995d5e9b0c14', binary '[{\"value\": \"\", \"title\": \"申请内容\"}, {\"value\": \"\", \"title\": \"审批详情\"}]' ); ``` sqlparser解析失败

比如 按天 按周 按月 按年这种分表规则,生产环境经常有这种冷热数据的分表场景

大大麻烦看一下这个问题,谢谢🙏 代码用的最新的 master ## 客户端登陆报错: > 2020/10/26 17:04:27 - ERROR - server.go:[386] - [server] "onConn" "ERROR 1045 (28000): Access denied for user 'kingshard'@'127.0.0.1:53898' (using password: Yes)" "" conn_id=0 2020/10/26 17:04:51...

https://github.com/flike/kingshard/blob/f17b3939474659568b3aa14aa89beeef8da4f24b/proxy/server/conn_query.go#L139 ```go if !c.isAutoCommit() { // not in autocommit ?? // then set it again ?? if err = co.SetAutoCommit(0); err != nil { return } } else { //...

https://dev.mysql.com/doc/refman/5.7/en/insert.html

请问下 支持insert xxx on duplicate update...语句么

执行预处理时, SHOW TABLES FROM `xxx` WHERE `Tables_in_cdb` = ? 时,报错为: Error 1105: parse sql "show tables from `xxx`" error

![image](https://user-images.githubusercontent.com/6236245/96951962-47a40380-1520-11eb-83bb-cbc3270b07be.png) ![image](https://user-images.githubusercontent.com/6236245/96952012-5c809700-1520-11eb-9a74-b69372d5505d.png) 求解决

查询慢的问题解决了,但是好像分表查询逻辑确实可以优化一下,如果分表多的化 查询时间=表数量*单表时间

同一个节点下,怎么分配不同的用户能查看不同的表呢?只能通过mysql配置吗