问题:No suitable driver found for jdbc:mysql:localhost:3306/x
原因: URL写错,缺少 // ,private String URL = "jdbc:mysql:localhost:3306/x";
解决步骤:private String URL = "jdbc:mysql://localhost:3306/x";
参考(侵删):
编程人生(1) 使用mysql时遇到**No Suitable Driver Found For Jdbc**的异常的解决方法_Tchö的博客-CSDN博客