Error connecting Excel to Dashdb - ibm-cloud

I wanted to connect excel to my bluemix dashdb . I found and followed the directions in the IBM knowldegebase at Article. But am getting the connection error message box when attempting to open the BLUExcel.odc file as recommended in the article. The error I see basically states:
SQL30081N A communication Error has been detected. Communication protocal is tcp/ip. API used is sockets....Protocol specific error code 10061.
Investigation of the specific 10061 error did not resolve the issue.

Interestingly I couldn't connect Excel to any of my dashdb databases so thought I would have a look at the BLUExcel.odc file that gets generated as part of the process.
In there I found the connectionstring had
Hostname = localhost
so I changed this to the hostname that you find in the Connect tab of the dashdb instance you want to connect to and it works fine. Hope this helps someone else..

Related

PowerBI Error : Details: "PostgreSQL: 28001: Cannot connect to the server company.onmicrosoft.com"

I was working on a PowerBI report which I initially connected with the PostgreSQL on the Azure Cloud.
I was able to import the data and work on it till recently. I had whitelisted my earlier IP and hence connection was smooth. Today When I tried to connect from new IP (I have whitelisted this New IP as well) but it is not working. I am getting the following error. Not sure what should be done to continue working with the same report.
Details: "PostgreSQL: 28001: Cannot connect to the server company.onmicrosoft.com"
When I go to edit settings I am not able to change anything there as well. Not sure what should be done. Can Anybody please help on this.
I tried the following but nothing worked
Searched for Answers on PowerBI Community
Searched for Answers on Stack over Flow
Tried to change Internet connection
Whitelisted all possible IP on Azure PostgreSQL
Restarted the server on Azure PostgreSQL
Hi I finally figured out the solution to this problem so thought of posting it here so that it may help others who are stuck with similar problem
So this is what I did,
I checked the credentials it was all fine but I re-entered the server name and added :5432 its Port number in front of the server name.
Then it again asked for username and password, that I provided and it got connected to the data source very well.
Finally after hours of trial and error the issue got resolved

dashDB Launch Server Error

I have added a dashDB to my app and restaged as required. Unfortunately, when I select the Launch button I get a Server Error 500 page. In the Details I get the following:
The website encountered an error while retrieving https://login.ng.bluemix.net/UAALoginServerWAR/oauth/authorize?response_type=code&state=c0241f7f-cf7a-4463-9c29-502c5b4f5efb&scope=openid&client_id=mccpserviceadmin&redirect_uri=https%3A%2F%2Fmccp.ng.bluemix.net%2Flogin%2Fcallback%2Fb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aUzNDdGVYcHBHSTJ0RVg0VjhkbkNrVlVDYkhoNDBvc3R1TzQzTGhTY2JWWUFVUSZhdXRob3JpemF0aW9uLWVuZHBvaW50PWh0dHBzOi8vbWNjcC5uZy5ibHVlbWl4Lm5ldC9sb2dpbiZhdXRob3JpemF0aW9uLWVuZHBvaW50LXF1ZXJ5PXB1YmxpYz10cnVlIn19.N1XmBAm3ZJQExj1FD18JFLPFkECuizGJJVrT0dTrUeZPeH2gIj6nqk6tGlChoSWMHrxdhnH59d0272OkBiT-AaDasYQsGufXwZkmqSJ72fxbwLBefKgu_fgi1rxylhNM0rs5k-YNDk6SW69vwNWI-Np3ywGW8wTRHx26tXQ8_lFzeGP6K0Mke-cQT-u-HXU6c28E6R9XHGuiahRyKHV6eY_Ohvp5I_UE2E3JOUoXVpnj-F34JsmeW6mnUalmJDVJrzVfUJ0MVb9Kyej0eZDnQOV2cnm_auoTR2U_JoIoaZb6ESfoN6nt_Z7ALPZ0txXsVGyHzWf95enwVAPstfLCpw. It may be down for maintenance or configured incorrectly.
Which I can't decipher.
I read in this forum where one can login using the details from the VCAP_VARIABLES which I was able to do successfully. Interestingly I have annother app on bluemix that also has a dashdb that was accessible but now isn't.
I have dropped the dashDB a couple of times and also created it but left it unbound all for no joy.
Any thoughts will be appreciated.
It looks like a bluemix problem as the dashdb is working fine from the Launch button and I can see the data I loaded when I logged in via the vcap variables.

Database diagnostic information on dashDB

I am trying to load some data into a table in my dashDB database but hit an error message. Can I download db2diag.log from the dashDB console to find out what has happened?
com.ibm.db2.jcc.am.SqlNonTransientConnectionException: [jcc][t4][10335][10366][4.18.60] Invalid operation: Connection is closed. ERRORCODE=-4470, SQLSTATE=08003 Data loading failed.
As Jeff said, you can't access the logs of this DBaaS as it is shared resource. You will need to debug from your applications side. Are you maybe having a contingency problem with passing around the connection handle? Can you share your code?
http://www.ibm.com/developerworks/websphere/techjournal/1205_ramachandra/1205_ramachandra.html
Details about enabling database tracing in Liberty:
http://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wlp.nd.iseries.doc/ae/twlp_dep_jdbc_trace.html?cp=SSAW57_8.5.5%2F2-3-11-0-5-3-1&lang=en
Since DashDB is a service, you don't have access to the logs that you normally would have access to.

MySQL Workbench failed to connect

I can't figure this one out. I can't connect to a server using MySQL Workbench, I tried any kind of connection methods. The error message I get is
Failed to Connect to MySQL at AT 127.0.0.1:3306 with user root
Invalid for this platform protocol requested(MYSQL_PROTOCOL_SOCKET)
I ran into the same problem, in my case I originally created the connection with the "Local Socket/Pipe" option selected in the "Connection Method" drop down. Trying to switch back to "Standard (TCP/IP)" did not work and caused the error mentioned by OP. I had to delete the connection and start over by selection "Standard (TCP/IP)" from the start. The connection was successful after that.
To solve this problem you must check the "Others" field in Advanced tab
If you had the connection stored with a socket option you will find a "socket=." (or anything similar)
Delete it
e.g. http://prntscr.com/k63pua
This is a very unusal error message which I haven't seen before, especially on Windows. It has probably to do with how the server is installed. As a newbie it would definitely be the best choice to use the Windows Installer for all required parts. This will install the server properly too.
By using xampp you are on your own to check whether a server is installed and running as a service, as well as the proper configuration. For troubleshooting watch my video on Youtube where I tried to explain most common pitfalls for beginners.
Note: you can open the connection without actually being connected. In that case MySQL Workbench allows to do all those things that don't require a valid server connection, e.g. log file viewing, config file editing, service start/stop etc. Use this to check your server's configuration. Make sure it accepts TCP/IP connections (there's also a short section in the video about this).
Update:
Downvoter, please add a comment why you think my answer is bad.
Re-reading the error message I got another idea: could it be that you used local socket/named pipe for the connection? If so try with normal TCP/IP.

Problems with postgreSQL on ubuntu 12.10

I am a new postgresql user and I am trying to open an new account on this
database technology. As I was trying to open a new server I cannot create a database within this server. It says an error when I try to open that up.
Could you please tell whats wrong with this.
I do the following steps.
I create an account as this:
Despite this the server does not get created.
Is there something wrong with configuration of this server.
This is the error which says
Thank you in advance
Vangjush
The service is not the IP address of the server: http://www.pgadmin.org/docs/dev/connect.html
I'm no expert, but I believe the service is a shorthand for specifying other connection parameters. It's most simple to establish connections at first by specifying the values directly, so just leave that blank.
http://www.postgresql.org/docs/9.2/interactive/libpq-pgservice.html