• Sábado 21 de Septiembre de 2024, 16:33

Autor Tema:  Java-mysql  (Leído 920 veces)

spiderman160281

  • Miembro activo
  • **
  • Mensajes: 96
    • Ver Perfil
Java-mysql
« en: Jueves 16 de Noviembre de 2006, 20:19 »
0
por favor aguien que me pueda ayudar lo que pasa que tengo un problema es un sistema que estoy haciendo en java, bueno el programa esta en windows uso el netbeans, y la base de datos esta en linux o sea mysql, la sintaxis de la consulta a la hora de insertar esta bien localmente en la maquina windows lo hace, pero cuando intento hacer lo mismo en windows no lo hace me marca los siguientes errores:

init:
deps-jar:
Compiling 1 source file to D:\Java\cocobueno\build\classes
Note: D:\Java\cocobueno\src\cocobueno\alta.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
compile-single:
run-applet:
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused: connect

STACKTRACE:

java.net.SocketException: java.net.ConnectException: Connection refused: connect
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2565)
at com.mysql.jdbc.Connection.(Connection.java:1485)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at cocobueno.alta.action(alta.java:145)
at java.awt.Component.handleEvent(Component.java:5734)
at java.awt.Component.postEvent(Component.java:4240)
at java.awt.Component.postEvent(Component.java:4250)
at java.awt.Component.dispatchEventImpl(Component.java:3971)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

** END NESTED EXCEPTION **

Last packet sent to the server was 31 ms ago.
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2631)
at com.mysql.jdbc.Connection.(Connection.java:1485)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at cocobueno.alta.action(alta.java:145)
at java.awt.Component.handleEvent(Component.java:5734)
at java.awt.Component.postEvent(Component.java:4240)
at java.awt.Component.postEvent(Component.java:4250)
at java.awt.Component.dispatchEventImpl(Component.java:3971)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at