Quantcast
Channel: MySQL Forums - Connector/ODBC
Viewing all 1136 articles
Browse latest View live

Calling Store procedure using the CALL is not returning expected output (1 reply)

$
0
0
Hi ,
I am using the mysql-connector-odbc-5.3.4-win32 to connect to MYSQL Server 5.5
I am calling a store procedure using the following ODBC Code Snippet.
I am getting Error “MySQL][ODBC 5.3(a) Driver][mysqld-5.5.19]Invalid parameter type".
Could you please give inputs on calling a store procedure using ODBC driver.

wstring wsStmt =L"{CALL `test`.`simpleproc7`(?)}";

RetCode = SQLPrepare(hStmt, (BSTR)(wsStmt.c_str()),wsStmt.length())
retcode = SQLBindParameter(hStmt, 1, SQL_PARAM_OUTPUT, SQL_C_CHAR, SQL_CHAR, 0, 0, &cParam1, 0, &cbParm2);
if ( (retcode != SQL_SUCCESS) && (retcode != SQL_SUCCESS_WITH_INFO) ) {
printf("SQLBindParameter(sParm1) Failed\n\n");


}else
{
if (hIpd)
{
SQLFreeHandle(SQL_HANDLE_DESC, hIpd);
hIpd = NULL;
}
retcode = SQLGetStmtAttr(hStmt, SQL_ATTR_IMP_PARAM_DESC, &hIpd, 0, 0);
if (retcode == SQL_SUCCESS)
{
retcode = SQLSetDescField(hIpd, 1, SQL_DESC_NAME,"param1",1);

}

}
RetCode = SQLExecute(hStmt);//

Best KD 8,Cheap KD 7,New Kobe 10,Mens Lebron 12 kd8s.com (no replies)

$
0
0
www.kd8s.com Sale Best Kobe 10,Cheap Kobe 9 Elite,New KD 8,Cheap KD 7,Lebron 12 Lifestyle,Stephen Curry 1,Cheap Free Run 5 Women,Men Roshe Run

Error in running isql with mysql-connector-odbc.x86_64 5.1.5r1144-7.el6 (no replies)

$
0
0
I have installed unixODBC.x86_64 (2.2.14) and mysql-connector-odbc.x86_64 (5.1.5r1144) on Oracle Linux Server 6.5 64 bit with Oracle 12c and MySQL Community Server 5.6.14. Oracle database character set is AL32UTF8 and MySQL database character set is latin1. mysql-connector-odbc is installed through rpm.

[oracle@tstlnx01 ~]$ isql myodbc5 -v
isql: relocation error: /usr/lib64/libmyodbc5-5.1.5.so: symbol strmov, version libmysqlclient_16 not defined in file libmysqlclient_r.so.16 with link time reference

I have also installed mysql-connector-odbc-5.3.4-linux-el6-x85-64 but it was installed to a specific directory by unzipping tar file I downloaded from mysql website. For testing, I changed odbc.ini to point to that driver and running isql is fine.

Thanks for any help.

ODBC driver does not support the requested properties. (no replies)

$
0
0
Hello Guys,

I;m new to Mysql and we have a project on migrating SQL to MySQL and I'm not a developer guy to start with. This is a two-tier architecture running on AWS under windows 2012 64-bit platform and we are stuck in troubleshooting ODBC 5.1 version. I have successfully define the ODBC running for 32-bit. Our application comes from the 32-bit environment and just using ASP classic. Below are the steps already being done to reach this error message: ODBC driver does not support the requested properties.

1. already enabled the 32-bit application to "true" on the application pool used by the IIS

2. installed mysql-dobc-connector 5.1 version and can connect to the database successfully.

Below is the global.asa used.

Session("ConnStr") = "Provider=MSDASQL;DSN=AAAAA;server=" & session("ServerName") & ";UID=?????;pwd=?????;database=" & session("DBName")
Session("DocServerName") = "*******************amazonaws.com"
Session("DocConnStr") = "driver={MySQL ODBC 5.1 Driver};server=;port=1561;" & session("DocServerName") & ";UID=?????;pwd=?????;Option=3;"

Appreciated your help. Thanks

enable mysql odbc 5.3 ANSI Driver Connection Polling, (1 reply)

$
0
0
I installed MySql ODBC 5.3 ANSI Driver on my server, and enabled Connection Polling.
In my MySql tables, there are a lot of fields storing Chinese characters.
After enabling Connection polling in ODBC, all these fields readed from db become ?????, if I disabled Connection Polling, everything get OK, why this happens? Are there any other configurations in ODBC I should make if I want to use Connection Polling?

MySQL ODBC Setup Help (no replies)

$
0
0
I apologize ahead of time if this is the wrong forum to be posting in, but it felt right to me since it does pertain to the MySQL ODBC connector. If I'm wrong, please let me know which forum to post in.


First, our setup. We have a MySQL server, which I have no admin rights to, that is set to allow clients to connect using the older authentication (secure_auth=0), and is setup on a Linux server. We have two Windows 2008 R2 servers: I'll refer to them as Server-A and Server-B.

Now for issue and help I need.
I'm trying to prepare Server-B to replace Server-A. Both servers have MySQL connector v5.1 installed. On B, I've setup the ODBC exactly as it is on A, but I keep getting the following error when testing the connection:

Connection Failed: [HY000][MySQL][ODBC 5.1 Driver]Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)

I fully understand why I'm getting this message and what's happening. What I don't understand is why does it work just fine on Server-A and not on Server-B? I tried comparing all kinds of files, registry entries and ODBC options to determine a difference, but cannot find anything out of the ordinary.

Now then. I have installed MySQL Workbench and I can duplicate the same error, but in the advanced options of Workbench, I can check the "Use the old authentication protocol" box and all works fine. It also confirms that the MySQL server is definitely accepting older auth protocols.

I've looked for a similar option when setting up the ODBC connection, but I am unable to find one. How do I tell the ODBC driver to use older auth protocol when there is clearly no options to tell it so like there is in MySQL Workbench?

Any help is greatly appreciated.

Thank you,

Micheal

ODBC call failed (no replies)

$
0
0
I have a database that usess access on the front end and mysql on the back. For some reason I cannot stay connected for any period of time I am using the 5.3 ANSI driver and version MySQL 5.6.23

No DB connection with Edge Browser on Localhost (no replies)

$
0
0
My homepage connect very fine to MySQl, except when using the new Windows Edge Browser and on localhost. (It works fine with Edge on the production server).

Error message is no connection. What to do?

DBD:mysql module build on Solaris 11.2 (no replies)

$
0
0
I have a new Solaris 11.2 installation in a SPARC LDOM. I used IPS and installed MySQL 5.5. And since I am runnning Perl 5.12 I installed database-512 also.
On Solaris Perl is 32 bit. MySQL is 64 bit. When you try to build the DBD::mysql module you get all sorts of build failures due to 32 vs 64 bit incompatibity.
Normal module install syntax gives you ELF problems:
perl Makefile.PL

So after a lot of frustation I finally found this to work:
perl Makefile.PL --mysql_config=/usr/mysql/5.5/bin/sparcv7/mysql_config

It uses 32 bit libraries and includes. The 'make' worked. I did see one error when I ran 'make test' but I think that was due to the virtual machine I am running in. I ran 'make install' and it installed fine. I have a working web page now.
I wanted to post this so I can find it when I forget what I did.

ODBC Connection Problem on Local Network (no replies)

$
0
0
Noobie here, after installing the ODBC connection drivers and server application on a Windows 7 machine(Machine 1), I was able to setup the ODBC connection between an Access database and begin importing and exporting tables from the PC where the MySQL service resides.
After loading the ODBC connection drivers on a Machine 2 on the same local area network, I am not able to successfully connect using the LAN IP address in the TCP/IP Server field. If "localhost" worked on machine 1, why wouldn't the LAN IP of Machine 1 work in this field?

Thanks,

Rob

in my Zen Cart store, accessing the entry_postcode in the Address Book table, the column is Varchar(10), but using mysql odbc connector 5.3 only returns 5 characters (no replies)

$
0
0
in my Zen Cart store, accessing the entry_postcode in the Address Book table, the column is Varchar(10), but using mysql odbc connector 5.3 only returns 5 characters

is there a configuration setting that will avoid truncation?

Error my_thread_global_end() (no replies)

$
0
0
Hello,

I am trying to configure MySQL Connector + UnixODBC under Debian 8. Installing distribution packages libmyodbc and unixodbc fails with "Floating point exception". Installing MySQL Connector 5.3.4 binaries and compiling UnixODBC 2.3.4 works OK except I get following error:

Error in my_thread_global_end(): N threads didn't exit

I found old posts about this error and seems to be fixes a long ago but I am still getting it. I am working with MySQL server 5.5.44-0+deb8u1.

Is there any way to solve it? What impact could have this problem in a production server? Any way to end those threads?

Regards

Trying to connect to MySQL from Excel VBA (1 reply)

$
0
0
I am trying unsuccessfully to connect to the sample database sakila in my new MySQL installation from Excel VBA with the following code:

Sub ConnectToMySQL()
Dim sakilaConn As ADODB.Connection
Set sakilaConn = New ADODB.Connection
sakilaConn.ConnectionString = "DRIVER={MySQL ODBC 5.3 ANSI Driver};" & _
"SERVER=localhost;" & _
"DATABASE=sakila;" & _
"UID=myUserID;" & _
"PWD=myPassword" & _
"OPTION=3"
sakilaConn.Open
sakilaConn.Close
End Sub

It fails at the Open with:

Run-time error '-2147467259 (80004005)':
[Microsoft][ODCB Driver Manager] Data source name not found and no
default driver specified

Note: MySQL for Excel is installed and connecting through it succeeds,
no problem.

Running:
Windows 10 64-bit
Excel 2013 32-bit
MySQL 5.7.9 (64-bit?)

Probably shouldn't be a factor, but myPassword does contain special chars.

Thanks for any advice you can provide.

Mysql Cann't connect to xxx.xxx.xxx.xxx by internet (no replies)

$
0
0
Hello,

for that i installed mysql-server 5.5 on os x server,
i able to connect mysql any where from Lan but not from internet.
i have also done port forwarding and give permission to database.

after this i am still facing problem

mysql cannot connect with xxx.xxx.xxx.xxx

please help

ODBC driver for RHEL 7 (no replies)

$
0
0
Hi,

I want to install ODBC driver in RHEL 7. But I found ODBC driver is available for RHEL6,5 and linux generic versions. Shall I use Linux generic version for RHEL 7?



Thanks,

Vijay

ODBC user name appends domain?? (3 replies)

$
0
0
MySQL Ansi 5.34 32 bit ODBC connector. MySQL Server ver 5.6 If I enter a user name of joe, the connection fails: MySQL ODBC5.3(w) Driver Access failed for user joe@station1.mydomain.local.

The user Joe does exist in MySQL. That is the name I want to use. Just Joe

This is happening on 2 out of 3 machines so far. Help please! Thanks.

Access form ODBC error using "GET DIAGNOSTICS" (1 reply)

$
0
0
It's well known that Accesss forms don't return the exact ODBC error message. If you perform an insert without setting a NO NULL field to a value it just returns "ODBC call failed" rather than e.g. "'Field ''table1col3Nonnull'' doesn''t have a default value'".

You can use DAO or ADO and return the precise error after performing a query in DAO or ADO but when the query is called by an Access form the only error returned is "ODBC call failed".

I tried using this function:

CREATE FUNCTION `new_function` ()
RETURNS VARCHAR(5)
BEGIN
GET DIAGNOSTICS CONDITION 1 @p1 = RETURNED_SQLSTATE, @p2 = MESSAGE_TEXT, @p3 = MYSQL_ERRNO;
RETURN @p1;
END

The function works fine when called from MySQL workbench but returns null when called from VBA e.g.:

Set rs = db.OpenRecordset("SELECT mydb.new_function();", dbOpenSnapshot, dbSQLPassThrough)
Debug.Print rs.Fields(0)

This returns null (and subsequent calls to the function from within MySQL workbench does return the error code meaning that the diagnostics area is still populated with the error.

When the function is changed to:

CREATE FUNCTION `new_function` ()
RETURNS VARCHAR(5)
BEGIN
GET DIAGNOSTICS CONDITION 1 @p1 = RETURNED_SQLSTATE, @p2 = MESSAGE_TEXT, @p3 = MYSQL_ERRNO;
RETURN "Testing";
END

Set rs = db.OpenRecordset("SELECT mydb.new_function();", dbOpenSnapshot, dbSQLPassThrough)
Debug.Print rs.Fields(0)

Returns "Testing" as expected.

I've also tried "SHOW ERRORS;" but this returns null as well.

Does anyone know if ODBC/VBA can return variables ok? Or is it just that "GET DIAGNOSTICS" doesn't work when called from ODBC/VBA?

Or does anyone know of another method to return the precise error?

MySQL connector for AIX (no replies)

$
0
0
We need to connect from IBM datastage to mysql community edition db. ODBC drivers provided by IBM doesn't support the community edition connection. Any ideas on how to connect to mysql from datastage?
Also, if we build a odbc connector from source code on AIX, is there any instructions available?

ODBC from Powerbuilder (no replies)

$
0
0
Hi, I'm trying to reach my MySQL-databases from Powerbuilder (10.5) via the ODBC-connector. Connecting is no problem, I can see my data without a problem and all SELECT-statements work like a charm.
But whenever I try to update something, it gives me:

SQLSTATE = S1000
[MySQL][ODBC 5.3(w) Driver][mysqld-5.1.55-community]Got error -1 from storage engine

No changes made to database.

I tried a variation of settings in my connection-string but always the same result.

What am I missing?

Thanks in advance,

Eric Debruyne, Belgium

Remote connection to MySQL (13 replies)

$
0
0
Ok Hopefully someone can tell me if this is possible.

I am trying to enable remote access to a MySQL database through an ODBC connection (using Microsoft Access as a front end).

My port 3306 is forwarded via my router to the machine hosting the database,(this is just a Windows 7 desktop machine--not a server)

the firewall is configured to allow traffic through the Port

the user has been created in MySQL with privileges granted to that database with % as the host,

I also created a user with the same name on localhost because I read that that can sometimes be a problem.

But still when I try to use the connector from a remote machine I get the error that the remote IP cannot connect to the MySQL database.

I even added another user with that particular IP (from the machine) as the host and still the same answer.

I get the same answer if I try to telnet from the remote computer using that port.

the skip-networking is commented out in the my.ini file. There is no bind-address line in the my.ini file

I use the website canyouseeme to check the port and it says it is not being blocked.

The MySQL server was installed as part of the Ampps stack

Please tell me what I am not seeing! Are direct connections just not allowed? Is it something to do with Ammps?
Viewing all 1136 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>