synyx GmbH & Co. KG Homepage Welcome Guest   | Login
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Register  | Search  | Help  | RSS feeds


Quick Go »
Thread Status: Normal
Total posts in this thread: 4
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 1842 times and has 3 replies Next Thread
Male Anonymous
Advanced Member



Joined: Oct 9, 2006
Posts: 332
Status: Offline

Could no connect to database via: jdbc:mysql://localhost

Hello,

I'm trying to install OpenCMS. But I got a problem, when the setup wanted to create the database:

Could no connect to database via: jdbc:mysql://localhost:3306/
java.sql.SQLException: Unable to connect to any hosts due to exception: java.io.IOException: Connection refused

-------------------------------------------
java.lang.NullPointerException

-------------------------------------------

But the mysql-server runs normally and i can connect to him from other apps. Can someone help me? What's the fault?

Greetings
jonas
[Feb 2, 2004 8:07:02 PM] Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
Male Arrasz
Advanced Member
Member's Avatar


Joined: Mar 9, 2003
Posts: 1279
Status: Offline

Well,

ensure the Port 3306

then ensure your credentials are correct

If both is fine, check if mysql Tables DB, User has the needed entries

Kind Regards

Joachim Arrasz

Synyx oHG
----------------------------------------
--
/**
* Joachim Arrasz
* OpenSource Solutions
* Synyx GmbH & Co. KG Karlstr. 68 76137 Karlsruhe
* @phone +49(0)721 66 24 866
* @eMail arrasz@synyx.de
* @www http://www.synyx.de
*/
[Feb 3, 2004 10:06:02 AM] Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male Anonymous
Advanced Member



Joined: Oct 9, 2006
Posts: 332
Status: Offline


The Port 3306 ist ok. The username is root and i have no password set.

In the mysql tables db "user", for the user root there are only "Y" in the columns.

In the step before, OpenCMS-Setup asked for "OpenCms Connection". I don't know what this mean, but the setup set it to the same username (root) and password (no password).

I don't really understand why I can't create a database. I have never worked with Tomcat and OpenCMS before.
[Feb 3, 2004 9:21:40 PM] Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
Male Anonymous
Advanced Member



Joined: Oct 9, 2006
Posts: 332
Status: Offline


Ok, it's all right now. I had skip-networking activated in my config-file of mysql. I've read that you have to comment out this. Now it's working.

nevertheless, thanks for your help :)
[Feb 3, 2004 10:41:20 PM] Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]