MySQL Forums
Forum List  »  MySQL Shell

mysqlsh often reports “Lost connection” after connecting
Posted by: sky sky
Date: December 09, 2020 08:24PM

Hi all:
I installed mysql-server and mysql-shell on db3 node. After starting mysqld normally, use the mysqlsh command (mysqlsh -uicroot -h db3 --py --cluster) to connect.
After a short period of inactivity, the command (cluster.status()) will prompt: SystemError: RuntimeError: Cluster.status : Lost connection to MySQL server during query.
If executed again, it will prompt: SystemError: RuntimeError: Cluster.status: MySQL server has gone away
This is still the case after using “\reconnect” to reconnect. It can be executed normally only after logging out and logging in again

It has been confirmed that the firewall is closed, mysql-server is normal, and the connection is normal through the mysql command

Options: ReplyQuote


Subject
Views
Written By
Posted
mysqlsh often reports “Lost connection” after connecting
166
December 09, 2020 08:24PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.