|
|
Index
| Recent Threads
| Who's Online
| User List
| Register
| Search
| Help
| |
![]() |
OpenCms Forum » List all forums » Forum: General questions about OpenCms » Thread: Could no connect to database via: jdbc:mysql://localhost |
|
Thread Status: Normal Total posts in this thread: 4 |
[Add To My Favorites] [Watch this Thread] |
| Author |
|
|
Advanced Member
|
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 |
||
|
|
Advanced Member ![]() 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 */ |
||
|
|
Advanced Member
|
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. |
||
|
|
Advanced Member
|
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 :) |
||
|
| [Show Printable Version of Thread] |