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

ODBC Connection Failed (2 replies)

$
0
0
I installed on windows 7 MySQL ODBC 5.3. I am trying to connect to MySQL running on a CentOS 6 Linux server. Correct port and server IP address is being used. Correct MySQL user and password is used. I keep getting the error, "Connection Failed Can't connect to MySQL server on xxx.xxx.xxx.xxx (10060):

I can connect to the server using Postgresql ODBC with no problems. I can connect using phpMyAdmin. What more do I need to configure to be able to ODBC from windows desktop to the MySQL on the Linux server?

Thanks

Cannot install Connector (no replies)

$
0
0
Trying to install Connector on a Windows 7 Professional 64-bit system. Initially, I installed the 64-bit version. However, I was geting an architecture mismatch error, so I uninstalled the 64-bit version (am running Microsoft Office Professional 2010 32-bit version). I have downloaded the 32-bit version and thought I had installed it correctly (no error messages), however, when I access Control Panel, Admin. Tools, Data Sources (ODBC), and click Add from the User DSN, I do not see the ODBC driver (only the SQL Server drive). Help!!!

I have a MS Access database that I am trying to upload to a SQL database on my web server. If there is a better way of doing this, please let help me learn...

Thanks in advance for any helpful advice you may have.

MySQL Membership Roles (no replies)

$
0
0
First of all, I apologize if I don't use the correct terminology...I'm not very well versed in technical terminology.

I built a site years ago that connects to a MySQL DB through my web host and queries the database and tables using the MySQL ODBC 3.51 Driver. However, I am interested in implementing membership roles to try to create a more secure and structured web site. I really have no idea what is involved in setting this up and what code needs to be implemented to make all of this run.

From what I have read and understand, I believe (correct me if I'm wrong) that I need to set up a MySQL Membership Provider with .NET or the ADO.NET driver for MySQL? I also believe I need to set up the MySQL Profile Provider and the MySQL Role Provider?

I believe that all of this is different than the current MySQL ODBC 3.51 Driver I currently have installed and the the Membership Provider is what will be required to set up to have all the rolls I'm looking for.

Again, please correct me if I'm off on this.

Anyways, I'm asking for guidance in:
1) What do I need to do to set up my MySQL database with membership roles?
2) What connectors do I need and how do I need to set them up?
3) What resources are available that could walk me through step by step on how to accomplish this?

I really appreciate all the help.

Thank you,

Ryan

Connector installation fails (1 reply)

$
0
0
I'm trying to install MySQL Connector/ODBC 5.3.4 64bit in Windows Server 2012 R2, but getting the following error:
"Error 1918.Error installing ODBC driver MySQL ODBC 5.3 ANSI Driver, ODBC error 13: The setup routines for the MySQL ODBC 5.3 ANSI Driver ODBC driver could not be loaded due to system error code 193: .. Verify that the file MySQL ODBC 5.3 ANSI Driver exists and..."

Any idea how to proceed from here?

BTW, installation of 32bit driver goes smoothly, but it doesn't help me.

Duplicate table from MS SQL to MySQL (2 replies)

$
0
0
Hi

I have table (5000 rows) in MSSQL 2008 R2 and I need copy on remote MySQL (ping 40 ms).

I have tried the two options

1. Linked server in MSSQL. I use "INSERT INTO OPENQUERY (MYSQL...".
But it works very slowly, approximately 5 min.

2. SSIS for MSSQL. I was hoping that it's work faster. But it works extremely slowly, approximately 15 min.

Is there a faster way to solve this issue?

MS Access 2013 & MySQL OBDC Fail to Link To Tables (1 reply)

$
0
0
I'm a newbie to MySQL and MS Access. I have the following configuration:


MS Access 2013 (32bit)
MySQL v5.6.17
Windows 7 (64bit)

I've tried to use the 64 bit of MySQL OBDC (v5.3.4). I can add the User DSN in Control Panel, but when I try use that DSN to Link to the Tables in MS Access, I get the following error:

"OBDC--call failed. The specified DSN contains an architecture mismatch between driver and application (#0)"

So I tried to load the 32bit version of MySQL OBDC driver but after installing the driver, I don't see it show up in the list to select when creating a DSN.

Any help would be appreciated.

Thanks,
Ronald

Connector/ODBC FP conversion overhead (no replies)

$
0
0
We currently have a C++ application that reads significant amounts of primarily float point data from several potential data sources - MySQL included. As maintaining multiple database layers is getting problematic we're investigating dropping all but the ODBC driver, but we're having issues with Connector/ODBC performance (almost an order of magnitude slower than libmysql - and given this is the primary database we use, that's a problem).

Profiling reveals this is because data appears to be serialised to string for transmission then converted back to a binary format on the client instead of using a binary protocol (compared to the native library a nontrivial chunk of our runtime ends up being in strtold, which is being called by sql_get_data). Checking the source confirms this. While that probably doesn't matter much for most applications, it's quite problematic here - is this intended behaviour? Have we missed a flag for a more appropriate transport mechanism?

facing issues in compilation of odbc (trunk,5.2,3.51) on visual studio (2005,2012) on windows (xp,7,2000 server) (no replies)

$
0
0
Hi all,

I was compiling odbc source code on windows, but I am facing lots of issues. I have been trying for last 5 days but was unable to resolve. Please someone help me with this issue.

I have tried all permutations of (odbc (trunk,5.2,3.51) on visual studio (2005,2012) on windows (xp,7,2000 server)), but errors were same.

Here I am explaning errors on windows 7 with visual studio 2012 on odbc source code (trunk and 5.2)


Error :
Error 76 error LNK1118: syntax error in 'VERSION' statement C:\Users\sgupta\Desktop\odbc_trunk\myodbc\driver\driver.def 26 1 myodbc5
Error 56 error LNK1120: 5 unresolved externals C:\Users\sgupta\Desktop\odbc_trunk\myodbc\bin\Debug\myodbc-installer.exe 1 1 myodbc-installer
Error 74 error LNK1120: 8 unresolved externals C:\Users\sgupta\Desktop\odbc_trunk\myodbc\lib\Debug\myodbc5S.dll myodbc5S
Error 51 error LNK2001: unresolved external symbol _default_charset_info C:\Users\sgupta\Desktop\odbc_trunk\myodbc\installer\myodbc3i.obj myodbc-installer
Error 55 error LNK2001: unresolved external symbol _my_free C:\Users\sgupta\Desktop\odbc_trunk\myodbc\installer\myodbc3u.lib(stringutil.obj) myodbc-installer
Error 61 error LNK2001: unresolved external symbol _my_free C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\odbcdialogparams.cpp.obj myodbc5S
Error 62 error LNK2001: unresolved external symbol _my_free C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\myodbc3u.lib(installer.obj) myodbc5S
Error 63 error LNK2001: unresolved external symbol _my_free C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\myodbc3u.lib(stringutil.obj) myodbc5S
Error 53 error LNK2001: unresolved external symbol _my_malloc C:\Users\sgupta\Desktop\odbc_trunk\myodbc\installer\myodbc3u.lib(stringutil.obj) myodbc-installer
Error 65 error LNK2001: unresolved external symbol _my_malloc C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\odbcdialogparams.cpp.obj myodbc5S
Error 66 error LNK2001: unresolved external symbol _my_malloc C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\myodbc3u.lib(installer.obj) myodbc5S
Error 67 error LNK2001: unresolved external symbol _my_malloc C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\myodbc3u.lib(stringutil.obj) myodbc5S
Error 50 error LNK2019: unresolved external symbol _get_charset_by_csname referenced in function _main C:\Users\sgupta\Desktop\odbc_trunk\myodbc\installer\myodbc3i.obj myodbc-installer
Error 68 error LNK2019: unresolved external symbol _list_cons referenced in function _mygetdatabases C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\callbacks.obj myodbc5S
Error 72 error LNK2019: unresolved external symbol _list_free referenced in function "void __cdecl processDbCombobox(struct HWND__ *,struct HWND__ *,unsigned int)" (?processDbCombobox@@YAXPAUHWND__@@0I@Z) C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\odbcdialogparams.cpp.obj myodbc5S
Error 73 error LNK2019: unresolved external symbol _list_length referenced in function "void __cdecl processDbCombobox(struct HWND__ *,struct HWND__ *,unsigned int)" (?processDbCombobox@@YAXPAUHWND__@@0I@Z) C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\odbcdialogparams.cpp.obj myodbc5S
Error 69 error LNK2019: unresolved external symbol _list_reverse referenced in function _mygetdatabases C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\callbacks.obj myodbc5S
Error 71 error LNK2019: unresolved external symbol _my_end referenced in function _DllMain@12 C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\main.obj myodbc5S
Error 60 error LNK2019: unresolved external symbol _my_free referenced in function _ConfigDSNW@16 C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\ConfigDSN.obj myodbc5S
Error 54 error LNK2019: unresolved external symbol _my_free referenced in function _driver_new C:\Users\sgupta\Desktop\odbc_trunk\myodbc\installer\myodbc3u.lib(installer.obj) myodbc-installer
Error 70 error LNK2019: unresolved external symbol _my_init referenced in function _DllMain@12 C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\main.obj myodbc5S
Error 49 error LNK2019: unresolved external symbol _my_init referenced in function _main C:\Users\sgupta\Desktop\odbc_trunk\myodbc\installer\myodbc3i.obj myodbc-installer
Error 52 error LNK2019: unresolved external symbol _my_malloc referenced in function _driver_new C:\Users\sgupta\Desktop\odbc_trunk\myodbc\installer\myodbc3u.lib(installer.obj) myodbc-installer
Error 64 error LNK2019: unresolved external symbol _my_malloc referenced in function _mytest C:\Users\sgupta\Desktop\odbc_trunk\myodbc\setupgui\callbacks.obj myodbc5S


Environment variables set:
MYSQL_INCLUDE_DIR C:\Program Files\MySQL\MySQL Server 5.6\include
MYSQL_LIB_DIR C:\Program Files\MySQL\MySQL Server 5.6\lib
MYSQL_DIR C:\Program Files\MySQL\MySQL Server 5.6

CMAKE OUTPUT :

C:\Users\sgupta\Desktop\odbc_trunk\myodbc>cmake -G "Visual Studio 11 2012"
-- The C compiler identification is MSVC 17.0.50727.1
-- The CXX compiler identification is MSVC 17.0.50727.1
-- Check for working C compiler using: Visual Studio 11 2012
-- Check for working C compiler using: Visual Studio 11 2012 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 11 2012
-- Check for working CXX compiler using: Visual Studio 11 2012 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- ENV{MYSQL_DIR} = C:\Program Files\MySQL\MySQL Server 5.6
-- MySQL Include dir: C:/Program Files/MySQL/MySQL Server 5.6/include
-- MySQL Library : C:/Program Files/MySQL/MySQL Server 5.6/lib/mysqlclient.l
b
-- MySQL Library dir: C:/Program Files/MySQL/MySQL Server 5.6/lib
-- MySQL CXXFLAGS:
-- MySQL Link flags:
-- MySQL Include dir: C:/Program Files/MySQL/MySQL Server 5.6/include
-- MySQL Library dir: C:/Program Files/MySQL/MySQL Server 5.6/lib
-- MySQL CXXFLAGS:
-- MySQL Link flags:
-- ODBC Installation Library: odbccp32
-- Checking if SQLColAttribute last arg is compatible with SQLLEN* - FALSE
-- Checking if SQLColAttribute last arg is compatible with SQLPOINTER - FALSE
-- Checking if SQLParamOptions() 2nd and 3rd arg is compatible with SQLULEN - F
LSE
-- Checking if SQLParamOptions() 2nd and 3rd arg is compatible with SQLUINTEGER
- FALSE
-- Apparently odbc headers could not be found. 2nd and 3rd parameters assumed t
be (*)SQLULEN by default
-- Enabling threads support
-- MySQL client lib(version 50620) requires Secure32.lib - TRUE
CMake Warning (dev) at driver/CMakeLists.txt:83 (GET_TARGET_PROPERTY):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target "myodbc5". Use the
target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.

This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/sgupta/Desktop/odbc_trunk/myodbc

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

It will be really helpful if someone can let me know how to resolve this issue.

Regards
shashank

Workbench connects remotely but cannot connect from same PC with MySQL ODBC 5.1 Driver (1 reply)

$
0
0
This has worked previously for over a year. Now, my VB app cannot connect to the remote MySQL DB.

To troubleshoot, I installed MySQL Workbench. It connects remotely fine. I can query, etc all as normal. I believe this confirms all firewall, routing, IP, port, security, authority and such issues are NOT the problem. Am I right?

My application, however, fails with the call to cnMySQL.OPEN() with this error msg:

[MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '##.##.##.##' (10060)

Next, I ran an ODBC trace. Everything in the trace works with the exceptions below:

TubsVB 1454-2534 ENTER SQLDriverConnectW
HDBC 0x00769CF8
HWND 0x00000000
WCHAR * 0x71DB8B34 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x71DB8B34
SWORD -3
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>

TubsVB 1454-2534 EXIT SQLDriverConnectW with return code -1 (SQL_ERROR)
HDBC 0x00769CF8
HWND 0x00000000
WCHAR * 0x71DB8B34 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x71DB8B34
SWORD -3
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>

DIAG [S1000] [MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '##.##.##.##' (10060) (2003)

TubsVB 1454-2534 ENTER SQLGetDiagRecW
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 0x00769CF8
SQLSMALLINT 1
SQLWCHAR * 0x0018EF68
SQLINTEGER * 0x0018EB40
SQLWCHAR * 0x0018EB68
SQLSMALLINT 512
SQLSMALLINT * 0x0018EB50

TubsVB 1454-2534 EXIT SQLGetDiagRecW with return code 0 (SQL_SUCCESS)
SQLSMALLINT 2 <SQL_HANDLE_DBC>
SQLHANDLE 0x00769CF8
SQLSMALLINT 1
SQLWCHAR * 0x0018EF68 [ 5] "S1000"
SQLINTEGER * 0x0018EB40 (2003)
SQLWCHAR * 0x0018EB68 [ 80] "[MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on '##.##.##.##' (10060)"
SQLSMALLINT 512
SQLSMALLINT * 0x0018EB50 (80)


The MySQL workbench does not use the ODBC driver so I cannot compare it's connection through the ODBC trace log ;-(

Obviously, I would love a solution, but if not that, how to proceed with tracing/problem isolation so I can figure it out?

Thanks to all for any tips, suggestions or solutions.

DE

mySQL source not showing in ODBC sources list (no replies)

$
0
0
Hi all

I am new to this stuff - I googled and I did not find a solution to this - sorry if this is basic...

Then I start MS Access and I try to link a table using ODBC, the mySQL source does not appear in the list. But when I go back to windows, it is there. I tried to restart the whole system, nothing changed.

------
This is the detailed story :
I juste installed MySQL on my PC (win 7 64 bits). The ODBC driver was not installed with the installer (404 error, I tried 4 times), I installed it myself from the mySQL original site. I checked that I have the "Microsoft Visual C++ 2010 Redistributable Package" installed. I have it with x86 and x64 versions.

I could create the link to my mySQL database with windows 7, under "admin tools / configure ODBC sources". The clic on the "Test" button showed "Connection successful" and the source appears in the list. Good so far ! :)

When I go back to Access, the source does not show in the ODBC sources list.

Did I miss something ? I saw some possible issues between 32 and 64 bits in the forums but the ODBC installer is choosing its installation automatically and I followed the steps... I also read about corrupted registry entries but I did not find any here.

Does someone have a clue ? thanks for you help ! :)

C# via OdbcConnection: can't get latest committed data (1 reply)

$
0
0
Hi,

I have a table called "docs", with two rows:

project doc_num
---------------------
ABC 1
ABC 2


I have some very simple C# code:

OdbcConnection conn = new OdbcConnection("...");
OdbcCommand cmd = conn.CreateCommand();
cmd.CommandText = "select max(doc_num) from docs where project = 'ABC'";
object objNewNum = cmd.ExecuteNonQuery();

If I run this code, I got 1. But if I run the SQL directly from MySQL workbench, I get "2".

What's wrong?

How to connect my modem to my php system (no replies)

$
0
0
i have a sysyem developed using PHP and MYsql. i want to be getting the text messages sent to my modem(dongle) and put them to my database in mysql database,.i was told that mysql connector does that, but i dont know how to. how can i be getting my text messages to my mysql database?..

please help

Problems installing MySQL with MySQL Installer 5.6.20 (no replies)

$
0
0
I am trying to install MySQL with the MySQL Installer 5.6.20. During installation, the Connector/ODBC 5.2.4 installation fails. Is there a way to correct this problem?

The driver returned invalid (or failed to return) SQL_DRIVER_ODBC_VER: 03.80 (no replies)

$
0
0
Hi

When I try to run an asp page with a query to mysql database I get the following error:
The driver returned invalid (or failed to return) SQL_DRIVER_ODBC_VER: 03.80

but when I hit refresh I get the resualts.

Does enyone know this problem?

Data Loading from Mysql DB to Excel throwing OOM error (no replies)

$
0
0
Hi,

I am getting a message "Excel cannot complete this task with available resources.Choose less data or close other applications." as error when loading the data from MySql Database to Excel 2013 32 bit.


i am having 900000 records in my database table with around 57 columns.

Configuration:

1. I have used 32 bit excel.
2. ODBC Connector 5.3.4 32 bit.
3. I have Win 8 64 bit
4. 4GB RAM
5. 200GB HD.
6. Intel i3 Processor

How can I connect to MySql using the IP adress from my conection string? (no replies)

$
0
0
I´m having issues trying to create a server, since mySql Workbenchs hostname is 127.0.0.1 and what I need is to simulate the server with a different IP adress.
This is what i have in my conection string: "SERVER=192.0.1.28;USER=Emp24;PASSWORD=Em24pw;DATABASE=Invent".
How can I connect to MySql using the IP adress from my conection string?
How can I change the hostname on MySql?
Thanks, I hope your help

Can't create MySQL Connection Manager for BIDS 2012 project (no replies)

$
0
0
I am trying to read data from a MySQL database by creating an SSIS package in BIDS (MS Visual Studio). Here's the environment:

Development Machine is Windows 7 64 bit.
MS Visual Studio 2012
MySQL Version 5.0.80
MySQL ODBC 5.3 ANSI Driver version 5.03.04.00 or MySQL ODBC 5.3 Unicode Driver version 5.03.04.00

I was able to create a System DSN and a User DSN both of which test successfully when I use Test Connection button on ODBC dialog. I believe I created both DSNs from the Administrator Tools Data Sources (ODBC) program. I've seen references about having to use the 32 bit version and I've run c:\windows\syswow64\odbcad32.exe but it just opens the same interface and both DSN appear.

Attempt using ODBC provider:
1. Create a new Connection Manager from BIDS
2. Select ODBC manager type
3. Configure ODBC Connection Manager dialog appears. I click New
4. The Provider drop down says ODBC and is disabled.
5. I select the User DSN (The System DSN doesn't appear) and enter the user name and password and press Test Connection.
6. I get an error that the connection failed ERROR [IM014][Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.

Attempt using ADO.NET provider:
1. Create a new Connection Manager from BIDS
2. Select ADO.NET manager type
3. Configure ADO.NET Connection Manager dialog appears. I click New
4. I select .Net Providers\ODBC Data Provider.
5. I select the User DSN (The System DSN doesn't appear) and enter the user name and password and press Test Connection.
6. I get an error that the connection failed ERROR [IM014][Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.

I tried both of the above methods by entering the connection string directly (specifying server, port, database, uid and pwd) but that results in an error stating "The ConnectionString property has not been initialized".

I'm at a loss as to what to try next.

Thanks for your assistance.

ODBC 5.3 CLIENT_MULTI_STATEMENTS=TRUE does NOT work (no replies)

$
0
0
Hi,
I am trying to do follow transaction
UPDATE tableA set F1 = 'ABC' WHERE F1 ='OLD;
DELETE FROM tableB WHERE F1 = 'OLD';
DELETE FROM tableC WHERE F1 = 'OLD';

I am Getting:

[ODBC 5.3(w) Driver][mysqld-5.6.19-log]unhandled error from mysql_next_result()
myodbc5w.dll

--> at System.Data.Odbc.OdbcDataReader.NextResult(Boolean disposing, Boolean allresults)
at System.Data.Odbc.OdbcDataReader.NextResult()
at System.Data.Odbc.OdbcDataReader.FirstResult()
at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method,

Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)

at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)

at System.Data.Odbc.OdbcCommand.ExecuteNonQuery()

I Already Try:
1- Update ODBC driver
2- Put option OPTION=67108864 on connection string
connStr = "Driver=" + driver +
";Server=" + server +
";Database=" + database + ";Uid=root;Pwd=root;OPTION=67108864"

And I don't have results.

mysql connector 6.1.6 for 64 bit OS (1 reply)

$
0
0
any help to find mysql connector 6.1.6 for 64 bit OS

Out of Memory using ODBC connector (no replies)

$
0
0
I just downloaded the MySql ODBC connector and started using it with LinqPad. The first few queries were fine, then I got hit with the message: Out of Memory, Needed (nnn... bytes).

What should I do to get past this error?
Viewing all 1136 articles
Browse latest View live


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