从Google DataFlow作业连接到CloudSQL时
public String cnstr = "jdbc:google:mysql://xxx:zzz:yyy/dbname?user=root&password=****";
Connection conn = DriverManager.getConnection(cnstr);
PreparedStatement st = conn.prepareStatement(selectSql))
我有一个错误:
No suitable driver found for jdbc:google:mysql://
有帮助吗?
i将连接字符串更改为
jdbc:mysql://0.0.0.0:3306/dbname?user=root&password=****
现在它正常工作;