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
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.
You can try doing oone of the following troubleshotting:
url="jdbc:mysql://localhost:1433/mydb
in case the sqlDB was installed on the same machine.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!