Thu Aug 16 15:55:47 CDT 2018 : Apache Derby Network Server - 10.11.1.2 - (1629631) started and ready to accept connections on port 1888
Good! That's where I want it. I have it on port 1888 because port 1527 is already in use.
The problem is that NetBeans IDE 8.2 doesn't make obvious how to select port when creating a database.
From the Services tab, expand the Databases node then right click Java DB. Select Create Database. In the Create Java DB Database dialog, set Database Name, User Name and Password. Click OK.
An error occurred while creating the database: java.sql.SQLNonTransientConnectionException: java.net.ConnectException : Error connecting to server localhost on port 1,527 with message Connection refused: connect..
How do I tell the Create Database feature that the server expects connections on port 1888?
https://netbeans.org/bugzilla/show_bug.cgi?id=115186
http://db.apache.org/derby/docs/10.11/ref/rrefattrib26867.html
As a workaround, go straight to the New Connection feature. For example:
Services tab > Databases node > right click > New Connection
New Connection Wizard
Driver: Java DB (Network)
Next >
Customize Connection
Host: localhost
Port: 1888
Database: books
User Name: deitel
Password: deitel
JDBC URL: jdbc:derby://localhost:1888/books;create=true
The important thing is the create=true attribute. Without it, you'll get:
Cannot establish a connection to jdbc:derby://localhost:1888/books using org.apache.derby.jdbc.ClientDriver (The connection was refused because the database books was not found.)
There you have it. You've just created a database and a connection to it at the same time from within the NetBeans IDE. Along the way, you have the ability to select the port on which the server is already expecting a connection.
Related
I am actively working with fdw under windows and Linux.
Under windows opened fdw connections on the other side are closed immediately if the main (and reading/writing) connection under windows is closed.
But under Linux opened fdw connections on partner stay active and open even if the initiating connection is closed.
E.g.
Server 1 (Windows)
Server 2 (Linux)
Server 1 makes a connection to his own local database. Within this connection, he writes/read a table which is a table on Server 2 and is represented locally by the fdw. On Server 2 the postgres_fdw connection to server 1 is visible. If server 1 closes the connection to his local database I can see that the postgres_fdw connection on Server 2 is already closed, which is perfect.
The other way round if I do this from Linux the postgres_fdw connection on Server 1 is still existing event if the local connection on Server 2 is closed.
Is there any possibility to config this?
What version of postgres are you running?
Are you using a Web / application server?
There may be a scenario such as nginx with keepalive connections where the HTTP sessions and the number of Postgres sessions grows beyond your PG connection limit
I have just installed ColdFusion 10 and am trying to connect to MySql Server 5.1, but it is showing the error below:
Connection verification failed for data source: cfartgallery2
java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer
JDBC Driver]Error establishing socket. Unknown host: MySQL Server The
root cause was that: java.sql.SQLNonTransientConnectionException:
[Macromedia][SQLServer JDBC Driver]Error establishing socket. Unknown
host: MySQL Server
Finally after 2 days I solved my own problem of getting the above error. It was due to a missing ODBC connector.
Steps for resolving:
First download and install the ODBC connector of respective version as of your MYSQL server version.
Rhen install vcredist_x64 it is required for sql connectivity.
Then install any SQL Server to create the database and start connecting to it with the datasource you have created in tour CF Administrator.
Hope you can solve your problem with my instructions , if not then please post your queries below.
When I open the ODBC Data Source Administrator (32-bit) to configure it for DB2 connections, I try to add a System DSN, and then add a DB2 database alias. The issue is that when adding the alias, the CLI/ODBC Settings don't show a TCP/IP tab so that I can enter in my db connection info. The only tabs listed are Data Source and Advanced Settings.
This is the 32-bit version of the driver. The 64-bit version has the TCP/IP tab and I configure it fine, but I need to be able to connect to a 32 bit instance.
How can I resolve this?
Here's what it looks like with the missing tabs: http://i.stack.imgur.com/54j5Y.png
You should be able to set those properties in the Advanced settings:
Add entries for the properties Hostname (use the ip address or hostname), Port (usually its 50000 for DB2) and that should be enough. Maybe you also need to set Property Protocol.
Note: I have never seen a tab to configure the TCP-IP Settings with the DB2 driver. Are you sure you want to use the DB2 driver and not the iSeries Access ODBC Driver? I think this has tabs to define the server connection properties.
I had a similar issue (not seeing the "TCP/IP" tab) while adding a DSN for the DB2 instance (v10.5) on our server. I added the following properties in the "Advanced Settings" tab, as suggested ;
Hostname: [ip address or hostname of the server]
Port: 50000
Database: [DB2 database I need to connect to]
After specifying the User ID & Password on the "Data Source" tab, the connection was successful and now I am able to work on the DB2 database using MS Access (Win 7, Office 2010).
Thank you!!!
I want to connect my SPSS Modeler 16.0 to my database IBM DB2. I tried to add the server by doing this: Tools>Server login>Add. I added the properties (IP address and port). Now when I select the server and type the userID and password and press OK I get a connection fail.
I'm running a French version and this is the translated error that I get :
Connection to server failed db2admin#localhost:50001
Server exception : please check the server connection status
Can anyone help ?
It looks like you are connecting on port 50001 which is the SSL port for db2, since it's a local database, you might try port 50000 which is unencrypted...
I am having trouble when I try to create a database connection in eclipse.
I created a connection to Sql server 2008. Database name, host, port, username, password, driver: sqljdbc ... everything is true. I ping successfully.
But when I see my connection, it shows all my databases and the hibernate tool cant see any table in database.
You can see in this picture