Can not read response from server. Expected to read 4 bytes, read 0 bytes be
Posted G_whang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Can not read response from server. Expected to read 4 bytes, read 0 bytes be相关的知识,希望对你有一定的参考价值。
springboot项目启动时连接mysql时提示,Can not read response from server. Expected to read 4 bytes, read 0 bytes be……
原因:mysql服务可能down了
解决办法:
连接xshell 查看mysql 进程 ps aux|grep mysql
然后重启mysql
service mysqld restart
以上是关于Can not read response from server. Expected to read 4 bytes, read 0 bytes be的主要内容,如果未能解决你的问题,请参考以下文章
tomcat链接mysql时超时报错java.io.EOFException: Can not read response from server. Expected to read 4 bytes,
数据库连接超时Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes,
数据库连接超时Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes,
Elasticsearch Exception:Message not fully read (response) for requestId
ResultSet can not re-read row data for column 1.
Could not read document: Can not deserialize instance of java.lang.String out of START_ARRAY