当前位置: 代码迷 >> 综合 >> Communication link failure 错误
  详细解决方案

Communication link failure 错误

热度:22   发布时间:2024-02-01 01:21:27.0

这个错误基本是在连接数据库是代码书写错误比如:

错误写法:String url="jdbc:mysql://localhoat:3306/test";

正确写法:String url="jdbc:mysql://localhost:3306/test";

区别:数据库文件localhost我写成localhoat了  也可能在书写时数字,标点等等都可能错,要注意,最好黏贴保证准确性;

  相关解决方案