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

MySQL ODBC 5.3 Unicode Driver Installation fails (no replies)

$
0
0
Hi,

I have a Windows 7 - 64 bit machine. I am trying to install MySQL ODBC 5.3 Unicode Driver but the installation gets interrupted with the below error

"Error 1918. Error installing ODBC driver MySQL ODBC 5.3 ANSI Driver, ODBC error 13: Could not load the setup or translator library. Verify that the file MySQL ODBC 5.3 ANSI Driver exists and that you can access it."

I have got the below 2 possible solutions from internet, tried both of them but still the error is popping up

1) Install Visual C++ 2010/2013 Redistributable – Done
2) Make sure msvcr100.dll is available in System32 and SysWOW64 – Checked. File is available

Please help.

Thanks

How do I access JSON datatype from ODBC? (no replies)

$
0
0
When I try to collect the data type, it appears as SQL_UNKNOWN. The size given is not consistent with what is stored in the database.

Can the data be accessed as a CLOB?

What is the way to programatically access the data.

Excel vba ADODB with MySQL (1 reply)

$
0
0
Hi I need to connect to a MySQL DB from excel, I found this example:

http://forums.mysql.com/read.php?10,100302

modify it to my requirements, but at the time of run it does nothing, nor it gives me error.

==================================================
Option Explicit
Option Base 1

Sub excelmysql()
' VBA to perform various actions on MySQL tables using VBA
' Majority of the original code adapted from Carlmack http://www.ozgrid.com/forum/showthread.php?t=46893

' PLEASE DO THE FOLLOWING BEFORE EXECUTING CODE:
' 1)In VBE you need to go Tools/References and check Microsoft Active X Data Objects 2.x library
' 2)Install MySQL ODBC 3.51 Driver. See dev.mysql.com/downloads/connector/odbc/3.51.html or google "MySQL ODBC 3.51 Driver"

'-------------------------------------------------------------------------
' Connection variables
Dim conn As New ADODB.Connection
Dim server_name As String
Dim database_name As String
Dim user_id As String
Dim password As String

' Table action variables
Dim i As Long ' counter
Dim sqlstr As String ' SQL to perform various actions
Dim table1 As String, table2 As String
Dim field1 As String, field2 As String
Dim rs As ADODB.Recordset
Dim vtype As Variant

'----------------------------------------------------------------------
' Establish connection to the database
server_name = "127.0.0.1" ' Enter your server name here - if running from a local computer use 127.0.0.1
database_name = "pruebas" ' Enter your database name here
user_id = "prueba" ' enter your user ID here
password = "12345678" ' Enter your password here

Set conn = New ADODB.Connection
conn.Open "DRIVER={MySQL ODBC 3.51 Driver}" _
& ";SERVER=" & server_name _
& ";DATABASE=" & database_name _
& ";UID=" & user_id _
& ";PWD=" & password _
& ";OPTION=16427" ' Option 16427 = Convert LongLong to Int: This just helps makes sure that large numeric results get properly interpreted

'---------------------------------------------
' Extract MySQL table data to first worksheet in the workbook
GoTo skipextract
Set rs = New ADODB.Recordset
sqlstr = "select dato1 from datos where IdDato=1" ' extracts all data
rs.Open sqlstr, conn, adOpenStatic
With Worksheets("Hoja1").Cells("A1") ' Enter your sheet name and range here
.ClearContents
.CopyFromRecordset rs
End With
skipextract:

'-----------------------------------------------------------------------
' Close connections
On Error Resume Next
rs.Close
Set rs = Nothing
conn.Close
Set conn = Nothing
On Error GoTo 0
End Sub
=============================================

I much appreciate your attention and time.

Best regards.

Trouble with ODBC (1 reply)

$
0
0
Using FileMaker Pro I have set up an ODBC Data connection to MySQL. The connection works but the transfer of files is extremely slow and the record count (which starts) at the correct number gradually decreases and leaves with with only 7 records after a few minutes?

Cannot install Connector/ODBC 5.3.6 on Sierra 10.12.1 (3 replies)

$
0
0
Hello
I'm trying to install Connector/ODBC 5.3.6 on my iMAc running OSX 10.12.1
The installation dialogue box says it will install in /Applications/Utilities/ODBC Administrator.app
However, although I'm told at the end that the installation was successful, there is no ODBC Administrator in the Utilities folder.
I don't understand what (if anything) I'm doing wrong and I'd be very grateful for some guidance.
Nicholas

Cannot open firstm but can second time (1 reply)

$
0
0
Hello!

My customer use the Connector/ODBC 5.3.6 for Windows x84.
https://dev.mysql.com/downloads/connector/odbc/
The ODBC is used to connect to a MySQL running on another machine.

The customer have configured an MySQL ODBC 5.3 Unicode Driver in Window's ODBC configuration tool at C:\Windows\SysWOW64\odbcad32.exe.
This window is displayed to configure the ODCB-connection: https://dev.mysql.com/doc/connector-odbc/en/images/myodbc-win-odbcadmin-adddsn-5-1.png

When the customer press the "Test" button the connection fails. But when pressed again the connection is successful and the possible databases/schemas can be shown in the configuration tool.


In my application where the ODBC-connection is used, the application crashes when trying to open the connection the first time. When trying to open again, the connection is established.

The exception which was thrown has this error message:
"ERROR [HY000] [MySQL][ODBC 5.3(w) Driver]Can't connect to MySQL server on '10.205.210.65' (10060)"


In sequence this happens:

Open() // Fails with the above exception.
Open() // Works

My customer have verified the connection to the MySQL-server on the remote machine with the MySQL Workbench. There is no problems with any permissions or network. Everything works except for first time when the connection should be established.

What could be the problem?


Best regards,
/Steffe

Optional Featrue Not Implemented (1 reply)

$
0
0
Windows 10
MySQL 5.7.9
MySQL ODBC Driver 3.51 32-bit
OpenOffoce 4.1.3
JRE 1.8.0_73 Installed

I have a good ODBC connection to a MySQL database on a remote server at Lunar Pages.
The connection works perfectly using MS Access 2K.

Opening up Base, I can "see" the database with all the tables listed.

Attempts to retrieve data by Linking to a list box or simply clicking on any of the tables gets this error message:

The Data Content Could Not Be Loaded
[MySQL][ODBC Driver][mysqld-5.6.27-75.0]Optional feature not implemented.

But if I create a SQL query to retrieve only one column, it works.

So I presume that an ODBC connection through OpenOffice needs "something else" that is either unnecessary or native in MS Access.

If you click "More" to learn about the error, you see:
SQL Status: HYC00
Error Code: 537

So the questions are: What optional feature? And how do I implement it?

Could this be related to Windows 10?

I've put these same questions to the OpenOffice forum, so far without success.

Any suggestions appreciated.

primary key detection w/odbc 5.3 ansi (no replies)

$
0
0
Hello friends -

Working with a data modification tool that uses odbc connections. Trying to talk to a 5.6 database using odbc 5.3 ansi. Reading and first time inserts work great. If I ask the tool to 'update, insert if new', I get primary key violations thrown back up; i.e., it's seems unable to tell that row identifier x exists, and tries a duplicate insert.

Vendor is blaming the ODBC driver implementation, which is consistent with the fact that if I change my target database to sql server, I see acceptable results. That being said, I'm curious if others have seen problems with primary key identification using odbc 5.3. I did see a SO thread regarding the sun jdbc:odbc bridge indicating DatabaseMetada.getPrimaryKeys() was not implemented, but I could not find anything else in Google land to validate that if this was a failing of the standard odbc driver.

Any insight is appreciated.

Cannot install Connector/ODBC 5.3.6 in OS X 10.11 (no replies)

$
0
0
Hi,
cannot install the connector in OS X 10.11. Last step in the wizard is failing with no error info.

Any help is welcome,
fernando

Unable to connect from one PC (no replies)

$
0
0
We have an MYSQL database which we have linked the Tables in an Access Database using the ODBC. I have installed and configured the ODBC in several computers and they all work fine. I have this one computer which I have configured the same way. I created the same ODBC connection in the Control Panel and test connection is successful. However when I open the access and try to read from the linked table I get an error "Run-time error 3151 ODBC-- connection to ... failed. I tried logging in with the Admin user but same thing. I can't figure out what could be different on this computer. I don't know where to look. Is there any logging that might help find the issue.

Thanks,
Sam

ORA--02070 database does not support some function in this context (no replies)

$
0
0
We are receiving the following error message when trying to update a table in MySQL from an Oracle database link. MySQL database resides in the cloud. We can select from the tables, insert into the tables, and update without using a where clause but it updates all records.

Update table_name set submit_ready=0 where userid = 'padamp'
*
ERROR at line 1:
ORA-02070: database SAP2PORTAL does not support some function in this context

ODBC Connection Failed when using Telstra (no replies)

$
0
0
I am trying on 2 different client PCs to connect to an external MYSQL database (different MYSQL databases and host ISPs with each Client - but both Clients use Telstra to connect to the Internet), using the standard MYSQL 5.1 Driver, and in both cases the User I specify is failing because the User that is being validated at the MYSQL end has an additional Telstra string appended.

These connections work fine from my office via an Optus connection.

e.g. I specify "MyUserID" and what gets rejected is 'MyUserID'@'client.lnk.telstra.net' - where "client" is the client's ID with Telstra.

There are no settings within the ODBC connection that I can see. The common denominator is Telstra but I have my doubts that we will get any meaningful response from them.

Any ideas?

Regards
Kevin Seerup

Error_code: 1146 on replica server (no replies)

$
0
0
I have a SQL with a linkserver with ODBC 5.3 to MySQL 5.7.

When I think a table on the master server's MySQL all right, but it does not replicate the table. If I update the table with a value I give this error:

[ERROR] Slave SQL for channel '': Error executing row event: 'Table 'db.table' doesn't exist', Error_code: 1146

ODBC Malformed Packet Error (no replies)

$
0
0
Hi there, im trying to create an ODBC data source on Windows 8.1 for a MySQL server for use in Qlik Sense to create some charts. I am getting the error: Malformed Packet whenever I try to run the ODBC test. Any help or previous experiences are welcome

SQL Set Statements and ODBC (no replies)

$
0
0
Hello,

I have created a SQL query in MySQL workbench which uses a SET statement to update numerous parts of the query with a specific date. The statement is :

SET @MaxDate = '2016-04-30';

Whenever I run the query, all I have to do is change the month end date. I tried to use this same query in excel using an ODBC connection to my data base but get a syntax error. If I remove the Set statement in the ODBC SQL statement within excel, the query will run without the error.

I would like to be able to use an ODBC connection to pull month end information from my database by only updating the date one time in my query.

Please help.

Protocol Version Mismatch Error on ODBC Connection Configuration (1 reply)

$
0
0
Hi,

I am trying to generate an ODBC connection to a server with a Public IP.

I enter the credentials correctly but I get the following error:

"Connection Failed
[MySQL][ODBC 5.3(a) Driver]SSL connection error: protocol version mismatch"

I have checked with the Customer and they have confirmed me that there is no need to use any SSL to connect to the machine.

The connection configuration options are left with the predefined values.

Can somebody give me any ideas on how to move on?

Thanks in advance.

MySQL 32 bits Connector does not show up on the Windows 7 Data Sources (no replies)

$
0
0
I installed the MySQL 32 bits connector in my Windows 7 64 bits.

The issue is that the ODBC you may be accessing from the start menu points to the System32 sub folders in the Windows main folder, which is the 64 bits version of the odbc.

Meanwhile, the 32 bits version of the odbc is in the SysWOW64 subfolder in the main Windows folder.

It is that version (odbcad32.exe the one you might want to execute in order to add your new User Data Source. Otherwise it will never find the MySQL connector you just installed (because it is the 32 bits version).

Once you do that, it will be shown in both the 32 and 64 bits versions of the Data Sources (ODBC).

I hope this helps! :)

ODBC failure under windows server 2012 R2 (4 replies)

$
0
0
I have tried to install MYSQL ODBC 5.3 Unicode Driver. I followed the recommendations for copying msvcr100.dll and msvcr120.dll to finally get it to install but when I try to use the connector I fill out the details then click on test and I get the

Connection Failed - Specified driver could not be loaded due to system error 127: The specified procedure could not be found. (MySQL ODBC 5.3 Unicode Driver, c:\Program Files\MYSQL\Connector ODBC 5.3\myodbc5w.dll).:

which I think was the same message I was getting when trying to install but was fixed by the copying of the dlls. I have tried installing C++ visual studio etc but no joy.

Thank you for any help.

Build error of mysql-connector-odbc-5.3.6 on Solaris spac10 (no replies)

$
0
0
Since there is no GA version of mysql-connector-odbc-5.3.6 for Solaris sparc 10, I have to build it from the source codes. But I meet the following errors in the build process:
[ 6%] Building C object driver/CMakeFiles/myodbc5a.dir/catalog.c.o
cc: Warning: illegal use of -library option, illegal item ignored: stlport4
cc: Warning: illegal use of -library option, empty value ignored
cc: Warning: Option -0 passed to ld, if ld is invoked, ignored otherwise
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/driver.h", line 376: syntax error before or at: ->
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/driver.h", line 376: warning: syntax requires ";" after last struct/union member
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/driver.h", line 592: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 74: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 75: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 82: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 83: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 90: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 91: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 111: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 112: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 113: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 114: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 119: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 120: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 128: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 129: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 136: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 137: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 145: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 146: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 148: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 149: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 160: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 161: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.h", line 164: warning: attribute "unused" is unknown, ignored
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.c", line 159: warning: implicit function declaration: my_stpmov
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.c", line 159: warning: improper pointer/integer combination: op "="
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.c", line 165: warning: improper pointer/integer combination: op "="
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.c", line 168: warning: improper pointer/integer combination: op "="
...
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.c", line 1224: warning: left operand of "->" must be pointer to struct/union
"/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.c", line 1236: cannot recover from previous errors
cc: acomp failed for /export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.c
*** Error code 2
The following command caused the error:
cd /export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver && /bin/cc -DDBUG_OFF -DHAVE_LIBDL -DHAVE_LPCWSTR -DTHREAD -DUSE_SQLCOLATTRIBUTE_SQLLEN_PTR -DUSE_SQLPARAMOPTIONS_SQLULEN_PTR -DUSE_UNIXODBC -D_UNIX_ -Dmyodbc5a_EXPORTS -I/export/home/gmlcmt/mysql5.6.31/usr/local/mysql/include -I/usr/local/unixODBC64/include -I/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src -I/export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/../util -m64 -KPIC -I/export/home/gmlcmt/mysql5.6.31/usr/local/mysql/include -library=stlport4 -g0 -mt -xarch=sparc -o CMakeFiles/myodbc5a.dir/catalog.c.o -c /export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src/driver/catalog.c
make: Fatal error: Command failed for target `driver/CMakeFiles/myodbc5a.dir/catalog.c.o'
Current working directory /export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src
*** Error code 1
The following command caused the error:
make -f driver/CMakeFiles/myodbc5a.dir/build.make driver/CMakeFiles/myodbc5a.dir/build
make: Fatal error: Command failed for target `driver/CMakeFiles/myodbc5a.dir/all'
Current working directory /export/home/gmlcmt/mysql/mysql-connector-odbc-5.3.6-src
*** Error code 1
The following command caused the error:
make -f CMakeFiles/Makefile2 all
make: Fatal error: Command failed for target `all'

Does anybody know the root cause? Your help is highly appreciated!

Problem with odbc driver 3.51.30 compared to 3.51.26 (no replies)

$
0
0
SQLExecute function fails with SQL_NEED_DATA in mysql odbc driver version 3.51.30. But the same function works perfectly in mysql driver version 3.51.26. Is this due to an API difference in the above versions?
I searched a bit on net and found a reference like the executing the following functions in order SQLBindParamater, SQLBindParameter, SQLPrepare and SQLExecute would solve the issue. But that didn’t worked for me.

Also we tried doing a SQLParamData followed by SQLPutData as found in another reference. That worked. But that is little difficult for us
But we are really interested in knowing whether the difference in behaviour is due to API change or the actual reason for the same. Please suggest a better solution for this issue.
Viewing all 1136 articles
Browse latest View live


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