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

你可能感兴趣的:(BUG总结,mysql)