-
Notifications
You must be signed in to change notification settings - Fork 324
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
Can't connect to MySQL server #152
Comments
@spacexnasa Please log into 172.18.19.203 and 172.18.19.205, execute the following command to check cn container status:
|
203 205 |
2023-07-14 15:42:53.809 [GMS-Druid-CreateScheduler--51-thread-7] ERROR com.alibaba.druid.pool.DruidDataSource - [] create connection SQLException, url: jdbc:mysql://172.18.19.205:51198/sync The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 205上错误日志, sync的这两个端口,我看两台服务器都是开的,服务器没有开防火墙 2023-07-14 15:42:53.809 [GMS-Druid-CreateScheduler--51-thread-7] ERROR com.alibaba.druid.pool.DruidDataSource - [] create connection SQLException, url: jdbc:mysql://172.18.19.205:51198/sync The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. |
docker 进 203 和 205 直接 mysql localhost 这种,也是报同样的错误 |
Please restart CN container in 172.18.19.203, 172.18.19.205 and retry. |
|
@spacexnasa Provide cn container log file. Path: /home/admin/drds-server/logs/tddl/tddl.log |
a lot of similar logs com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure |
Above error does not matter. Try to search |
一共 6 台服务器
Status: Image is up to date for polardbx/galaxycdc:latest
Processing [###########-------------------------] 30% create gms node
Processing [#############-----------------------] 38% create gms db and tables
Processing [################--------------------] 46% create PolarDB-X root account
Processing [###################-----------------] 53% create dn
Processing [######################--------------] 61% register dn to gms
Processing [########################------------] 69% create cn
Processing [###########################---------] 76% wait cn ready
Processing [##############################------] 84% create cdc containers
Processing [#################################---] 92% wait PolarDB-X ready
Processing [####################################] 100%
PolarDB-X cluster create successfully, you can try it out now.
Connect PolarDB-X using the following command:
目前就只有第一台能用,其余两台都报错
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
The text was updated successfully, but these errors were encountered: