You may try out a simple jdbc program with the url. If it works with that it will work with DIH also.
in your case encoding is not utf-8 . So , it makes no sense to set that in the connection property On Wed, Oct 22, 2008 at 3:43 PM, sunnyfr <[EMAIL PROTECTED]> wrote: > > Don't get how ? > > <dataSource type="JdbcDataSource" > driver="com.mysql.jdbc.Driver" > > url="jdbc:mysql://master-spare.videos.com/videos?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8"" > user="solr" > password="pass" > encoding="UTF-8" > batchSize="-1" > /> > > I tried that but it doesnt work ? how should I apply "set name uft8;" > > > Noble Paul നോബിള് नोब्ळ् wrote: >> >> in the <datasource> element there is an attribute url. put it there >> >> On Wed, Oct 22, 2008 at 3:25 PM, sunnyfr <[EMAIL PROTECTED]> wrote: >>> >>> Hi Noble >>> How can I append it to the jdbc url? >>> Thanks a lot >>> >>> >>> Noble Paul നോബിള് नोब्ळ् wrote: >>>> >>>> JdbcDataSource.java is the class >>>> >>>> if you wish to pass in any extra connection parameters you can append >>>> it to the jdbc url. >>>> --Noble >>>> >>>> On Wed, Oct 22, 2008 at 3:07 PM, sunnyfr <[EMAIL PROTECTED]> wrote: >>>>> >>>>> Sorry I'm quite new in java, and I would like to find this part to add >>>>> a >>>>> query just after the connection : >>>>> 'set names utf8' >>>>> >>>>> To fix up my problem with latin1 and utf8. >>>>> Some help would be great, thanks, >>>>> >>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/where-is-the-connection-code-in-solr%27s-code--tp20107151p20107151.html >>>>> Sent from the Solr - Dev mailing list archive at Nabble.com. >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> --Noble Paul >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/where-is-the-connection-code-in-solr%27s-code--tp20107151p20107401.html >>> Sent from the Solr - Dev mailing list archive at Nabble.com. >>> >>> >> >> >> >> -- >> --Noble Paul >> >> > > -- > View this message in context: > http://www.nabble.com/where-is-the-connection-code-in-solr%27s-code--tp20107151p20107715.html > Sent from the Solr - Dev mailing list archive at Nabble.com. > > -- --Noble Paul
