Hello everyone, sorry I am a bit of a n00b to MySQL, PHP, and Openfire. I am running WHS (Windows Home Server) with MySQL 5.0.51a, PHP v. 5.2.6.
I am able to run the setup for OpenFire but when I get to the page “http://192.168.1.ex#:9090/setup/setup-datasource-standard.jsp”
I enter the correct info with the tab “MySQL” selected from the dropdown, JDBC Driver Class: com.mysql.jdbc.Driver, Database URL: jdbc:mysql://[localhost]:3306/[real-database-name], and my user/pass for the database.
I get this: “A connection to the database could not be made. View the error message by opening the “\logs\error.log” log file, then go back to fix the problem.”
I looked at the error log and i don’t understand why it is saying “Unknown Source” for 6 lines of the code. Can anyone please help me understand what it is not picking up on and how to fix it?
Also on a side note the “ofuser”" table with the username and plainPassword, does this have any significance? I tried changing it to my login and password I used for the database connection to localhost with out and success. Also should this be changed to be a secure type of SQL password?
Thank you so much in advance!!!
ERROR LOG:
2011.04.14 12:52:00 Prototype
com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.UnknownHostException
MESSAGE: [localhost]
STACKTRACE:
java.net.UnknownHostException: [localhost]
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:246)
at com.mysql.jdbc.MysqlIO.(MysqlIO.java:271)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2771)
at com.mysql.jdbc.Connection.(Connection.java:1555)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConn ectionBuilder.java:39)
at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159)
at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:102)
at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:44)
** END NESTED EXCEPTION **
Last packet sent to the server was 0 ms ago.
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2847)
at com.mysql.jdbc.Connection.(Connection.java:1555)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConn ectionBuilder.java:39)
at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159)
at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:102)
at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:44)