SOLR DataImport Error “Unable to Execute Query”

后端 未结 3 1369
攒了一身酷
攒了一身酷 2021-01-20 19:28

I have a website running on an Amazon EC2 Instance, and I\'m trying to get Solr to interface and work with the database I\'m using. I\'m able to use the admin interface and

相关标签:
3条回答
  • 2021-01-20 20:02

    I think the problem is with the url parameter. If the MySQL database is on the same machine, then use url="jdbc:mysql://localhost/mydb" If its on www.mysite.com, then use url="jdbc:mysql://www.mysite.com/mydb"

    Also, your log files may have more details regarding the error - please go through the logs and post the appropriate entries here.

    0 讨论(0)
  • 2021-01-20 20:02

    You can try doing oone of the following troubleshotting:

    • Use url="jdbc:mysql://localhost:1433/mydb in case the sqlDB was installed on the same machine.
    • Check the Tomcat folder for errors (Catalina file).
    • Enable the auditing on the database level and check the logs on it.
    0 讨论(0)
  • 2021-01-20 20:11

    I faced a similar problem. My database is on the same machine. In data-config.xml, I changed the line:

    url="jdbc:mysql://localhost/mydb"

    to

    url="jdbc:mysql://127.0.0.1/mydb"

    and then things worked. Strange are the ways of Solr/Lucene!

    0 讨论(0)
提交回复
热议问题