0
일부 데이터를 한 서버의 데이터로 전송하기 위해 scriptella 스크립트를 사용하려고합니다. 스크립트는 '에서'접속 ID가 잘 동작하는 것이MySQL에서 MySQL로 데이터를 복사합니다.
<!DOCTYPE etl SYSTEM "http://scriptella.javaforge.com/dtd/etl.dtd">
<etl>
<description>
test script
</description>
<properties>
<include href="../config/kpoint-etl.properties"/>
</properties>
<connection id="in" driver="${driver}" url="${url}" user="${user}" password="${password}">
</connection>
<connection id="out" driver="${driver}" url="${url2}" user="${user}" password="${password}">
</connection>
<query connection-id="in">
SELECT owner_name, owner_domain, DATE(time_last_update)
as pdate, count(*) as avg from kapsule where DATE(time_last_update)="2013-06-19" group by owner_name;
<script connection-id="out">
UPDATE test SET username=?owner_name, domain=?owner_domain, frequency=?avg, rdate=?pdate;
</script>
</query>
</etl>
같은 것을 보이지만, 두 번째 서버 연결에 다음과 같은 오류를 보여줍니다.
JDBC provider exception: Unable to obtain
connection for URL jdbc:/mysql://localhost:3306/leopard
Error codes: [08001, 0]
Driver exception: java.sql.SQLException: No suitable
driver found for jdbc:/mysql://localhost:3306/leopard
특성 파일이 어떤 도움을 이해할 수있을 것이다이
driver=mysql
url=jdbc:mysql://192.168.8.72:3306/leopard
user=leopard
password=user12
url2=jdbc:/mysql://localhost:3306/leopard
같은 것입니다. 고맙습니다.
p.s. 질문과 관련하여 의문을 제기하십시오.