Can''t login to Database Mysql 4.1.19 in Fedora Core4

Hi guys,

I’‘ve installed wildfire 3 in my Fedora Core 4 box, I did the creation og database in mysql. But when it comes to me setting up my database setting, I can’'t seem to connect to my database.

Here is my database url - jdbc:mysql://localhost:3306/wildfire

any help would be much appreciated. Thanks! Mark

Here is the error log:


at org.jivesoftware.database.DbConnectionManager.setMetaData(DbConnectionManager.j ava:626)

at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectio

at org.jivesoftware.wildfire.admin.setup.setup_002ddatasource_002dstandard_jsp._js pService(

at org.apache.jasper.runtime.HttpJspBase.service(

at javax.servlet.http.HttpServlet.service(

at org.mortbay.jetty.servlet.ServletHolder.handle(

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica

at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage( 8)

at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica

at org.jivesoftware.util.LocaleFilter.doFilter(

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica

at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica

at org.jivesoftware.admin.PluginFilter.doFilter(

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica

at org.jivesoftware.admin.AuthCheckFilter.doFilter(

at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplica

at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler. java:471)

at org.mortbay.jetty.servlet.ServletHandler.handle(

at org.mortbay.http.HttpContext.handle(

at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.ja va:633)

at org.mortbay.http.HttpContext.handle(

at org.mortbay.http.HttpServer.service(

at org.mortbay.http.HttpConnection.service(

at org.mortbay.http.HttpConnection.handleNext(

at org.mortbay.http.HttpConnection.handle(

at org.mortbay.http.SocketListener.handleConnection(

at org.mortbay.util.ThreadedServer.handle(

at org.mortbay.util.ThreadPool$

2006.07.06 11:23:00 org.jivesoftware.database.DefaultConnectionProvider.getConnection(DefaultConnect Warning: DbConnectionDefaultPool.getConnection() was called before the internal pool has been initialized.

2006.07.06 11:23:00 org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager. java:92) WARNING: ConnectionManager.getConnection() failed to obtain a connection.

I don’'t really understand your errorlog but in general:

did you grant whatever user you’'re using access to the database? Something like:

grant all privileges on wildfire.* to the_admin@localhost identified by ''the_admin_password;

Make sure you don’'t use root or the root password…

After setting things up try to connect to the database with the mysql client. If you can’'t connect then reload the grant tables.

Do you run a firewall? If so allow all incoming and outgoing traffic to see if you can connect properly. This is acceptable for a short test to see if it will connect, but you shouldn’'t allow this situation for more then a few minutes.

Thanks for the reply sir.

Do you mean I must create a new user in my linux box? I logged in as root and used root as the username to connect to mysql.

I can connect to mysql using the “mysql -u root” command.

I’'ve checked the database mysql and table user and it has host=localhost, user=root and password=""

I’'ve managed to install it in my WinXP box but unsuccessful with my Linux one.

No, what you need to do is to create a new user for mysql. This user is not related to any linux user.

The easiest way to do this:

logon to mysql:

mysql -u root -p

use wildfire

grant all privileges on wildfire.* to the_admin@localhost identified by ''the_admin_password;

You need to replace the_admin with a self choosen username and the_admin_password with a self choosen password.

I hope you did set a password for root, otherwise you will need to do that. Explaining that would be beyond the scope of this forum, so I’'d like to suggest that you look at the manual at for further details.