[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Problem with Java and MySQL
- Subject: [cobalt-users] Problem with Java and MySQL
- From: "CMO - Thorsten Mitschele" <mitschele@xxxxxx>
- Date: Wed Jan 30 10:38:02 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi,
we habe a problem with Java Servlets and a mysql-connection.
If we try to connect to the mysql-database locally it works (via SSH-Shell
any mysql-command)
if we try it via the servlet it fails:
java.sql.SQLException: Cannot connect to MySQL server on
mysql.dettingen.cmo.de:3306. Is there a MySQL server running on the
machine/port you are trying to connect to?
(java.security.AccessControlException)
at org.gjt.mm.mysql.Connection.(Connection.java:239)
at org.gjt.mm.mysql.Driver.connect(Driver.java:126)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
is there any security thing we must configure in Tomcat to allow access? The
DB-Server is a own machine, not localhost.
Any hints, suggestions and help will be nice
Mit freundlichen Grüßen,
Thorsten Norman Mitschele
Geschäftsführer
----------------------------------------------
CMO Internet Dienstleistungen GmbH
Postfach 13 35 72577 Dettingen / Erms
Tel: 07123 / 72 67-0 Fax: 07123 / 72 67-150
e-Mail: info@xxxxxx Web: http://www.cmo.de