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

ODBCMySQL Network (no replies)

$
0
0
Hi,

I am trying to set up an ODBC connection to query a MySQL Database using MS Query and complete a report using VBA, how do I go about setting up my ODBC connection, the issue I have is that the MySQL database isnt stored on a network its stored on a local drive (Z:\) rtaher than a server

Is there am alternative way to query my database via Excel/MsQuery?

Many Thanks,
Antonio

Compiling ODBC driver on AIX 7.1 (no replies)

$
0
0
Hi,
I have successfully built the MySQL ODBC driver v5.2.4 on AIX 7.1 along with it's dependencies in 32 bit mode. The problem is that both iODBC and unixODBC are hanging during the driver loading phase.

I have written a test program that is able to connect to the database using the standard MySQ client API and perform queries so at least I know the client library is OK.

Has anybody succeeded in getting this driver working on AIX 6 or 7?

Cheers
K

ODBC Problem with CONCAT (no replies)

$
0
0
Hello,

i have a problem with a concat funktion:

select concat(a, '-', b) from xyz....

It works with odbc 3.5.11 and not with newer versions.
I use the data in excel. With the newer drivers the column dissapears even i can see it in the Microsoft Query Browser.
Is that a known bug or can i make some settings in the newer driver?

I cannot use generally the old driver, cause some complicated querys are not editable with 3.5.11.

best regards and thanks in advance

Problem with MySQL ODBC 5.2a connector with Windows 8 (1 reply)

$
0
0
I have been using MySQL Connector 5.1 with Windows computers, creating linked tables from an MS Access front end to a MySQL database. The system works well for the purpose it is used.

I have just using the set up with a Windows 8 computer. The MySQL connector which has been installed is 5.2a. The MS Access front end appears to be working fine, except if a table has Chinese characters in its records - the table when opened says ODBC failed.

Using the Windows 8 search feature if offers ODBC connectors for 32 and 64 bit.

But I am only able to set up a DSN using the 32 bit version.

I have tried to remove the connector software, but not had any success.

What is the cause of the table with Chinese characters failing to open.

If the solution lies in removing the 32 bit MySQL connector software and using 64 bit, how is the 32 bit version removed?

Would be very grateful for any suggestions as to a solution or knowing what is causing the problem.

ODBC Driver for Windows 95 ? (no replies)

$
0
0
Hello,
One of my customers (the biggest) needs to add some module to his VB6-written application under Windows 95, in aim to write some production data in his MySQL plant server (V5.1).
So he asked me to do that.
I answer that there is no MySQL ODBC driver for Windows95...Am I right?

Is there any solution to install some old version driver that will work with MySQL Server 5.1 ?

I tried to install V3.51 ODBC driver for MySQL, without success : "myodbc3i.exe needs another version of windows OS. Update your windows system."

Thank you in advance for your answrers..

Best regards.

Access 2010 5.2(a) - linked table cant join to access table (1 reply)

$
0
0
I have searched for days now to find an explanation for this but come up empty handed with each search.

I have been developing a solution on a PC that has the following credentials:
Win 7 (64-bit)
Access 2010 (32-bit)
Connector: mysql-connector-odbc-5.2.4-ansi-win32

On this PC (PC_a) I have been able to create the linked tables, query against the linked tables to extract the data and run subsequent queries joining the data I extracted into Access tables to the linked tables.

I am developing the solution for a PC that has the following credentials:
Win 7 (64-bit)
Access 2010 (32-bit)
Connector: mysql-connector-odbc-5.2.4-ansi-win32

On this PC (PC_b) I can create the connection, link the tables, preview the data in the tables, query the tables to extract the data but the subsequent queries that join Access data to the linked tables gets the error, [ODBC--Call Failed] and references a "Server does not support 4-byte encoded UTF8 characters" statement.

I have tried several attempts to including uninstalling and re-installing, installing MySQL server 5.6 and other variations and am at my wit's end. Any help or direction would be appreciated.

32bit ODBC driver on Windows 7 64bit not accessible (no replies)

$
0
0
I have some software the required the 32bit MySQL ODBC driver.

When I install the 32bit MySQL ODBC driver (mysql-connector-odbc-5.2.5-win32.msi) it is not available to add as new data source.

Is there a way I can make this possible or am I basically sol?

Any help would be appreciated.

Use ODBC Driver version 3.51 required by Crystal Reports (no replies)

$
0
0
In order to use Crystal Reports 11 with a hosted MySQL db, Business Objects have advised the use of the 3.51 version of the ODBC Driver. The problem is that the 3.51 ODBC driver, out of the box, does not connect with the database (when the DSN is created, no databases are shown for selection after server,user and password data has been entered ). So three questions:
(a) is it acceptable practice still to use 3.51
(b) any ideas why the 3.51 won't connect whereas 5.1 works fine - 3.5 used to work with this host, what could they have changed, are there any ODBC parameters where changing settings might solve this ?
(c) any comments on MySQL and Crystal ? Crystal 11 works fine with a local install of MySQL with ODBC 5.1.
Thanks.

mysql can not to insert unicode16 uncommon word (1 reply)

$
0
0
connect with ODBC “DRIVER={MySQL ODBC 5.2w Driver};SERVER=%s;PORT=%d;DATABASE=%s;UID=%s;PASSWORD=%s;OPTION=3;”
szSQL.Format(_T("INSERT INTO test")
_T("(Name)")
_T("VALUES('%s')"), _T("𢈢"));
m_Conn.pConn->Execute((_bstr_t)szSQL, &RecordsAffected, adCmdText);


The program does not return,This problem has troubled me for a long time,Who can help me answer this question thanks

How to use UTF8mb4 with ODBC (1 reply)

$
0
0
I create a table with charset utf8mb4:
CREATE TABLE sakila.test(ID INT NOT NULL AUTO_INCREMENT,Name VARCHAR(512),KEY(ID))CHARSET=utf8mb4;

then I creat ODBC DSN with MySQL ODBC 5.2w Driver named "EDB" and set character set utf8mb4 in details.

now, in my project, I try to insert a word use MFC:

CString strSql = _T("insert into test(name) values('𢈢')");
CDatabase db;
db.Open(_T("EDB"));
db.ExecuteSQL(strSql);//error, no respond
db.Close();

If the values is character in 0x0000-0xffff, it`s work.

How to use UTF8mb4 with ODBC.

ODBC Connection Pooling 3.51 vs 5.1 (no replies)

$
0
0
Hi,

The default connection pooling seems to be on for 3.51, and off for 5.1 (at least this is what odbcad32 is telling me).

If so, is there any reason why the default is off in 5.1?

What are the implications of switching it on on a live system (e.g. will I need to restart web servers etc.)?

Thanks for any help.

Error? Cannot insert character larger than 16bits (1 reply)

$
0
0
Mysql Version:5.6.11
Connector ODBC Version: 5.2.5
I try to changed field to UTF16, and use connect string:
DRIVER={MySQL ODBC 5.2 Unicode Driver};SERVER=127.0.0.1;DATABASE=richedb;UID=root;PASSWORD=root;OPTION=3;CharSet=utf16;
when I execute:
szSQL=_T("INSERT INTO test(NAME) VALUES('𢈢')");
ConnectionPtr->Execute((_bstr_t)szSQL, &RecordsAffected, adCmdText);
Is's no respond.
The character '𢈢'(UTF16 byte:0xD848DE22)
any help me!

Installation problem (1 reply)

$
0
0
I'm trying to install the ODBC Connector 5 so I can upload an MS Access file to MySQL. I've done this before and it worked. Now all I get is a message saying it can't connect.

This installation was attempted from the ZIP version of the Connector and then this was unzipped. There should be a SETUP in the files according to the directions, but I don't see it.

I also tried to install from the MSI version, but not sure how to do that.

At any rate, I've put all my dialog boxes out at:
http://creatingnewworlds.org/odbc_install.pdf

I think I probably need to get stuff out of there first - old drivers are there as you can see on the driver list on the file above.

Any help would be approciated. This is 2010 Access, running on Windows 7.The MySQL is version 5.0.96. The host PHPAdministrator set me to the connecting IP, 50.37.173.75.

Connection Issue - Connector/ODBC 5.2.4: Upgrading to 5.2.5 (no replies)

$
0
0
I've upgraded from Connector/ODBC 5.2.4 to 5.2.5 and can no longer connect to the database. A check of the ODBC error log shows that the user is not authenticating (access denied: 1045)

I downgraded to 5.2.4(w) and the user authenticates.

MySQL Server Version: 5.0.77

ODBC Trace 5.2.4: https://gist.github.com/objnoob/c032df92832e73551581
ODBC Trace 5.2.5: https://gist.github.com/objnoob/49a933103158a562341a

When I create a System DSN using 5.2.5 and use it in lieu of a raw string it connects :\

Any insight into what could be causing this would be greatly appreciated!

Prepared Statements problem in a VB6 application after switching to ODBC 5.2w driver (no replies)

$
0
0
Hello people, I'm Michel.

First of all I apologize for my eventually bad engRish.

In our company we develop a VB6 software which uses MySQL as database. After changing che connection string to use the 5.2w version of the ODBC driver instead of the previous 5.1, I discovered that on the server logs began to appear entries telling that PREPARED STATEMENTS are being created when our program does a query on the server.

The problem is that our application DOESN'T MAKE USE of PREPARED STATEMENTS but it works in the classic way, creating SQL query strings and opening ADODB recordsets with them. Actually these PREPARED STATEMENTS are created on an apparently random fashion, meaning that executing a given query causes a PREPARED STATEMENTS being created on the server, and by re-executing it a second time this doesn't happen.

All these PREPARED STATEMENTS being created caused an error message to pop up randomly in our application, telling that MAX_PREPARED_STMTS_COUNT was reached (the message was "Can’t create more than max_prepared_stmt_count"), as all these PREPARED STATEMENTS are being created supposedly by the ODBC driver itself but not closed and destroyed as our program doesn't manage them.

I tried to set the MAX_PREPARED_STMTS_COUNT environment variable on the MySQL server to a higher value, to prevent the error message to come out, and by experimenting with an our own utility program which moves a big quantity of records between databases I discovered that, when the data transfer begins, the MySQL server starts to eat up all the available memory, severely slowing down the machine. This happens because all of these PREPARED STATEMENTS are being created but not disposed.

So I switched back to the older ODBC driver version (5.1, as stated above), and all was fine, no PREPARED STATEMENTS were created and left opened, no RAM was eaten up and the machine exposed no slow downs or whatever.

So what I ask is: is this a problem (bug/incompatibility) of that ODBC's driver version (5.2w) or I forgot to set something in the connection string?

Here's the connection string we used to do the database connection with the 5.2w version:

DRIVER=MySQL ODBC 5.2w Driver;
USER=[user name];
PASSWORD=[password];
SERVER=[server address];
DATABASE=[database name];
PORT=3306;
OPTION=3;

What's eventually wrong with it?

I also tried 2 versions of the server (5.1.48 and 5.5.29) and the problem was present on both.

What's going on?

Thanks.

ODBC 5.2 connection problem (no replies)

$
0
0
Trying to upload from Access 10 to MySQL using the 5.2 Unicode driver. It fails with the message:
"
Server does not support 4-byte extended UTF8 characters."

What now? Are there options on the connector dialog box I can set to resolve this? Use a different version of the connector?

How to Connect MYSQL to MS ACCESS in NETWORK? (no replies)

$
0
0
Hi all!!
I have MYSQL server running in one machine (say PC1 with IP 192.168.0.45) and I want to connect to MS-ACCESS in another machine (say PC2) on the same network.
How can I go about it? Please help!!!!!!!!!!!

longblob return type changed between 3.51.17 and 3.51.18 (no replies)

$
0
0
We use a very ancient software. Until teh recent upgrade of PC and so mysql odbc connector it was fine. I've narrowed down the change to between 3.51.17 and 18. According to ODBC logs, the return type of the longblob fields changed:

3.51.17:
EasyReplay XXX-XXX EXIT SQLDescribeCol with return code 0 (SQL_SUCCESS)
HSTMT 0x00928ED8
UWORD 1
UCHAR * 0x020D8F10 [ 7] "cid_raw"
SWORD 256
SWORD * 0x02DFFC8A (7)
SWORD * 0x0217B858 (-4)
SQLULEN * 0x0217B85C (16777215)
SWORD * 0x0217B860 (0)
SWORD * 0x0217B862 (1)

3.51.18:
EasyReplay XXX-XXX EXIT SQLDescribeCol with return code 0 (SQL_SUCCESS)
HSTMT 0x0027B4D0
UWORD 1
UCHAR * 0x025B8F10 [ 7] "cid_raw"
SWORD 256
SWORD * 0x02DCFC8A (7)
SWORD * 0x0252B858 (-1)
SQLULEN * 0x0252B85C (16777215)
SWORD * 0x0252B860 (0)
SWORD * 0x0252B862 (1)

note the difference in the DataTypePtr parameter. cid_raw is a longblob type field in the table.

i didnt find any note about such change in the changelog! :(

MySQL connectivity issue with Business objects reporting via Linux (no replies)

$
0
0
Hi Members,

I'm trying to establish a connection to MYSQL community server 1.5.30 from Business objects (BO) reporting XI R3.1 SP5 application installed in Red Hat Linux 4. Recently we have installed MySQL RPM package 2.50.39 odbc connector in this Linux server. I've set all the required environment variables & sourced it. Also added the Data source name entry in ODBC.ini file.

When I tried conneccting to MySQL community server through the BO application in Linux application, getting the below error code.

SQLConnect: Retrying Connect.
SQLSTATE = 81
NATIVE ERROR = 0
MSG = 523 80

Can anyone please suggest me what this error code represents and is there a way to establish a connection to MySQL community server? Please let me know if you need further details.

Thanks,
Karthik

Data source cannot be found (ODBC 5.2.5) (3 replies)

$
0
0
Hi

I recently bought a new laptop which has MySQL ODBC driver 5.2.5. My website (written in ASP) worked fine on my old laptop (MySQL ODBC driver 5.1.5).

When I try to run my code on my new laptop, I get the error saying that the data source cannot be found.

So, my question is: how can I connect using MySQL ODBC 5.2.5?? I tried using a DSN connection string (DSN connection tested and working) and a DSN-less. Both produced the same error. Do I forget something?

My code:

'DSN-less
'connStr = "Driver={MySQL ODBC 5.2w Driver};Server=localhost;Database=***;User=***;Password=***;Option=3;"
'DSN
connStr = "DSN=DSNvzkdb"

set conn = server.createobject("adodb.connection")
conn.open connStr

Thanks!
Viewing all 1136 articles
Browse latest View live


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