Connect Qt to a Database - c++

I've been trying really hard for the past few hours to connect my Qt software to a MySQL database that I've hosted using a website that hosts small MySQL databases for free. I can connect to it using phpMyAdmin, but I'm really having trouble getting my software to connect to it.
This is the error message:
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified QODBC3: Unable to connect".
Can somebody explain to me what this means, and how to fix it?

You need to headers, libraries & client dll from MySQL
Compile Qt/MySQL driver
Provide path to mysql client library in PATH environment

Related

Connecting to SAS libraries via ODBC

I am new to ODBC and trying to make a DSN in Windows ODBC administrator to call it from R using "RODBC" or similar R-packages.
I am able to find the "server name" and "database name" for anything on "SQL Server" driver. However, "SAS" driver does not let me find explicit names for server and database names. All I know is the URI where the data set is stored, also I can get the host name of the SAS server that stores the databases and its port. Is there a way to add it as a DSN or even call it directly from R? I have tried several permutations of these name and addresses but I constantly get the same error that odbc connection was not successful.
For example, after I followed the steps to add SAS server in ODBC administrator, and I used RODBC package in R, I got this result
odbcConnect("mydbname")
[1] -1
Warning message:
In RODBC::odbcDriverConnect("DSN=mydbname") : ODBC connection failed

ODBC connections setup to import source ininformaitca

I am trying to import oracle table into sources (designer informatica) and when i try to import its giving me error [Microsoft][ODBC driver for oracle][oracle] ORA-121154:TNS: couldn't resolve the connect identifier specified
Am unable to figure out hoe to install odbc drivers if they are missing.
Please help
k
Do you have oracle client installed in your machine? If so oracle wire protocol will be available. Try connect using that
Make sure you have tns entry available under $ORACLE_HOME/client_1/network/admin

Pentaho DI can't connect to AWS Redshift - Amazon Error 100021

Referring to Pentaho's Doc, we should be using RedshiftJDBC4.jar instead of version 4.1. I have downloaded the driver and placed it in the lib/ directory. Relaunched spoon.sh and I noticed it is no longer complaining about not able to find the com.amazon.redshift.jdbc4 class driver as I was using the 4.1 driver earlier. However, it still could not establish the connection.
Error connecting to database [aws_redshift] :
org.pentaho.di.core.exception.KettleDatabaseException: Error occurred
while trying to connect to the database
Error connecting to database: (using class
com.amazon.redshift.jdbc4.Driver) Amazon Error setting
default driver property values.
Can anyone help on this?
On the flip side, I can connect to my endpoint using SQLWorkbench/J, a SQL client tool.
Somehow I managed to get it working. It seems that downloading AWS Redshift drivers version 4, 4.1, or 4.2 and placing them in the lib/ directory did not work for me for each version by choosing Redshift as connection type (in Database Connection setup).
Instead, I chose PostgreSQL using JDBC. In host name field, I included the endpoint WITHOUT port number 5439 at the end. So, the endpoint should just end with ...amazonaws.com. Fill in database name, port number of 5439, and username and password. If this did not work, try downloading the latest PostgreSQL JDBC driver and placing it in lib/ directory and try again.

ColdFusion Sybase data source configuration error

I am trying to configure a Sybase datas source in ColdFusion Administrator. I am getting the following error message when verifying the connection:
Connection verification failed for data source: IntellicredClient
java.sql.SQLNonTransientConnectionException: [Macromedia][Sybase JDBC Driver]No more data available to read.
The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][Sybase JDBC Driver]No more data available to read.
The only probably issue I can think of is the driver I choose. When I'm connecting to the database manually, I use Adaptive Server Anywhere 9.0 or SQL Anywhere 11. Since there's no such a choice in the Administrator, I choose Sybase. Could this be the problem?
I have ColdFusion 11.
Could be a bug in the JDBC driver. Try replacing current JDBC drivers with the older and stable version. View the link below for instructions.
https://bugbase.adobe.com/index.cfm?event=bug&id=4165262

ColdFusion DSN with DB2 via ODBC

I'm attempting to connect a ColdFusion application to a DB2 ODBC DSN.
Here's my error message:
Connection verification failed for data source: <DSN NAME>
java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket][IBM][CLI Driver] SQL30082N Attempt to establish connection failed with security reason "24" ("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001
The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket][IBM][CLI Driver] SQL30082N Attempt to establish connection failed with security reason "24" ("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001
I've installed DB2 client tools on the server ColdFusion runs on. I've verified the credentials are correct.
I'm not a DB2 guy, but have you seen the Coldfusion DB2 Universal Driver doc located here?
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=datasources_ADV_MJS_07.html
Based on your comments, you're using ODBC Socket instead. So while this isn't 1 to 1 what you're asking, it might have something useful: Configure Solaris to DB2 ODBC
http://kb2.adobe.com/cps/171/tn_17188.html
The other thing to keep in mind is that DB2 is only supported in CF Enterprise and Developer Editions. http://www.adobe.com/products/coldfusion/systemreqs/
http://kb2.adobe.com/cps/801/80121c8.html
This CFMX doc ended up being what we went with to get it working.
Thanks to SO for pointing us in the right direction.