Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

errior when connecting to database

Status
Not open for further replies.

seldeby

Technical User
Jan 8, 2005
1
SE
HI

When i am installaing a site i will get this meassage:

Loading JDBC driver com.mysql.jdbc.Driver

Connecting to database on jdbc:mysql://localhost:3306/infoglue
An exception occurred:Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused

** BEGIN NESTED EXCEPTION **

java.net.ConnectException
MESSAGE: Connection refused

STACKTRACE:

java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at java.net.Socket.<init>(Socket.java:365)
at java.net.Socket.<init>(Socket.java:178)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:124)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:225)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1779)
at com.mysql.jdbc.Connection.<init>(Connection.java:450)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at org.infoglue.cmsinstaller.DatabaseCommander.getConnection(DatabaseCommander.java:108)
at org.infoglue.cmsinstaller.MySQLDatabaseCommander.testConnectDatabase(MySQLDatabaseCommander.java:394)
at org.infoglue.cmsinstaller.InfoGlueCommandLineInstaller.checkDatabase(InfoGlueCommandLineInstaller.java:319)
at org.infoglue.cmsinstaller.InfoGlueCommandLineInstaller.showDatabaseDialog(InfoGlueCommandLineInstaller.java:400)
at org.infoglue.cmsinstaller.InfoGlueCommandLineInstaller.showDatabaseDialog(InfoGlueCommandLineInstaller.java:408)
at org.infoglue.cmsinstaller.InfoGlueCommandLineInstaller.showDatabaseDialog(InfoGlueCommandLineInstaller.java:408)
at org.infoglue.cmsinstaller.InfoGlueCommandLineInstaller.main(InfoGlueCommandLineInstaller.java:135)


** END NESTED EXCEPTION **

mysql 4.3.10

whats wrong
 
Are you including a username/password? A fully qualified descriptor should look like:

jdbc:mysql://user:password@localhost:3306/infoglue
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top