hi, 你能确定你的 class path 下有 mysql-connector-java-5.1.38.jar 依赖吗?请在运行时确认下这一点。
op <520075...@qq.com> 于2020年7月27日周一 下午2:45写道: > 您好,我创建了一个jdbc的表 > > > CREATE TABLE mvp_dim_anticheat_args_all ( > id BIGINT, > dt STRING, > cnt_7d INT, > cnt_30d INT, > PRIMARY KEY (id) NOT ENFORCED > ) WITH ( > 'connector' = 'jdbc', > 'driver'='com.mysql.jdbc.Driver', > 'url' = 'jdbc:mysql://localhost:3306/huyou_oi', > 'table-name' = 'mvp_dim_ll', > 'username' = 'huy_oi', > 'password' = '420123' > ); > > > > 查询的时候报 > [ERROR] Could not execute SQL statement. Reason: > java.lang.ClassNotFoundException: com.mysql.jdbc.Driver > > > > > > 我的安装目录lib下面有 flink-connector-jdbc_2.11-1.11.0.jar > 和 mysql-connector-java-5.1.38.jar 这俩,请问是什么原因?? > 谢谢