Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lealone-mysql插件终端不能同时运行多个mysql终端 #234

Open
tangzhongshan opened this issue Jul 9, 2024 · 5 comments
Open

lealone-mysql插件终端不能同时运行多个mysql终端 #234

tangzhongshan opened this issue Jul 9, 2024 · 5 comments

Comments

@tangzhongshan
Copy link

lealone-mysql插件终端不能同时运行多个mysql终端

lealone-mysql-1
lealone-mysql-2

如上图所示,想启动第2个终端,不能创建成功

@tangzhongshan
Copy link
Author

这个绝不是密码错误造成的

@codefollower
Copy link
Member

没有限制的,我这里是可以的。
mysql

@tangzhongshan
Copy link
Author

我刚看了是MariaDB,也是类似mysql的数据库

@codefollower
Copy link
Member

用 MariaDB 的客户端连 lealone mysql 插件我还没有试过,如果它用的协议不同就可能有问题。
lealone mysql 插件本身是允许用同一个用户名打开多个终端的。

@codefollower
Copy link
Member

MariaDB 的客户端我也试了,也可以同时打开多个终端的。

如果第二个 mysql 终端一直连不上,也有可能是因为它跟前一个 mysql 终端都分配给同一个 lealone 调度线程了,这个 lealone 调度线程在忙着写入数据,还没来得急处理新连接请求。不过按设计逻辑来看,不会发生的,lealone 调度线程在执行一批写入操作时会检查是否有新连接的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants