Installation error

I am trying to install openfire in my local linux box. I have set up the users and stopped the firewall to test this setup.

I get error “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.” from the openfire setup when i try to complete the installation process. I am trying to set up the installation in linux and when i check the error log i get the error:

2007.08.09 10:56:57 [org.jivesoftware.database.ConnectionPool.(] Failed to create new connections on startup. Attempt 0 of 3

com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:


MESSAGE: Connection refused

sorry about the multiple posts…i changed mysql from localhost to which worked.