how to import .sql file in mysql database using talend ETL tool -


i want import .sql file mysql database using talend etl tool , machine windows.

what tried used tsystem , write command is

"cmd c:/xampp/mysql/bin>mysql -u root demo <c:/xampp/mysql/bin/localhost.sql"  

when run got this:

starting job sqlfile @ 10:51 04/09/2013.   [statistics] connecting socket on port 3440 [statistics] connected microsoft windows [version 6.1.7601] copyright (c) 2009 microsoft corporation.  rights reserved.  c:\talend\tos_di-win32-r104014-v5.3.1> [statistics] disconnected job sqlfile ended @ 10:51 04/09/2013. [exit code=0] 

on console, haven't got error. when opened demo database doesn't contain anything.

please can 1 tell wrong.

if sql commands in ".sql" file not change , want "one shot" interactive execution, use 'tmysqlrow' , define :

  • the 'connection parameters' database,
  • the 'query' (using sql builder upload content of '.sql' file)
  • ignore 'schema' definition since sql commands consistent themselves

the configuration of tmysqlrow explained here : https://help.talend.com/display/talendopenstudiocomponentsreferenceguide53en/tmysqlrow

you can read usage scenario here (the component 'tdbsqlrow' applies on 'tmysqlrow') : https://help.talend.com/display/talendopenstudiocomponentsreferenceguide53en/tdbsqlrow


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -