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

ODBC With 2012 R2 (no replies)

$
0
0
Hi, Hope someone can help with this little puzzle we have at the moment. We have been using AWS RDS mysql instances for sometime now with no issues connecting to these mysql Databases. We have connected from applications running on Windows Server 2008 R2.

Now we have setup a 2012 R2 server with our application to access the AWS RDS MySQL DB. However it does not work and does not give any errors.

To try and find the issue we installed a MySQL Database on the 2012 R2 server, i.e. application and database on the same server. This works OK. No problem.

If we do a test with the ODBC drive to connect to the AWS RDS MySQL, it works fine no problem. Bench also work fine connecting to the AWS RDS instance.

So. The puzzle is why does a Local Database work OK with the application and a database on something else not work? What has changed in 2012 to prevent us connecting ?

ODBC connection with classic ASP (no replies)

$
0
0
I need to connect to a new mySQL database via classic ASP - installed ODBC driver 5.3 - using this connection string :

DRIVER={MySQL ODBC 5.3 Unicode Driver}; SERVER=< server name >; DATABASE=< database name >; UID=< user id >; PASSWORD=< password >; OPTION=3;

get this error:

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Please help

WIndows 32-bit to 64-bit Server (no replies)

$
0
0
I am new to this forum and new to working with MySQL so please forgive if I am in the wrong area with this question.

I am working with a company as a consultant, they have a DSN set-up on a Windows 32-bit machine and are trying to connect to a 64-bit web server, first off can this even be done successfully? The connection works without a problem going from a 64-bit Windows box to the web server, but with the 32-bit machine they are getting an error:

Connectivity error: [Microsoft][ODBC Driver Manager]Data source name not found and no default driver specified.

I verified that the DSN does in deed exist on the machine and is setup correctly.....my only conclusion at this point was that it is an issue of 32-bit to 64-bit connection. Any thoughts?

Thanks in advance for any assistance you may be able to provide.

need copy of MySQL ODBC 3.51.06.00 (no replies)

$
0
0
I know it's weird to want this old driver but it is absolutely necessary. We are using VBScript/ASP and MySQL 5.3 to run our website. For some reason, VBScript query results are only readable once using the newer drivers. To date (it's been six years) I have not spent the time to figure out why newer drivers don't work.

We need a copy of MySQL ODBC 3.51.06.00 Driver for 32 bit Windows 2003 server as backup in case our hard drive fails.

Is there any way at all to get a copy of this driver?

Create table with dash - through ODBC (no replies)

$
0
0
I am trying to export from a commercial software through its ODBC export tool, but it export some tables that contains dashes( - ) so there is an error in the ODBC export, I can't change the name of the tables because they are fixed, is there any way to skip this? or configure something in the ODBC export config options?

MySQL Client Out of memory (no replies)

$
0
0
I have a process that runs on MSSQL that queries a MySQL table via a linked server. It was working fine for a week, but now am getting the error:

OLE DB provider "MSDASQL" for linked server "MYSQL_WEB_PROD" returned message "[MySQL][ODBC 3.51 Driver][mysqld-5.0.45-community-log]MySQL client ran out of memory".
Msg 7306, Level 16, State 2, Line 1
Cannot open the table "my_users" from OLE DB provider "MSDASQL" for linked server "MYSQL_WEB_PROD".

I can't even do
select top 10 id from MYSQL_WEB_PROD...my_users ORDER BY ID LIMIT 1.

But I can do a simple query WITHOUT ORDER BY on the table such as
select top 10 id from MYSQL_WEB_PROD...my_users


But I found I can query other MySQL tables in the same database without an error, so it seems there might be a problem with that specific table ?

I was previously able to INSERT records into the MySQL table from the MSSQL Linked Server, but that now gives the same error.


I don't same to have any problems running queries & inserts against the table directly through Toad, but need to get the MSSQL process working again.

Is there some kind of amintenance I need to do ? I tried OPTIMIZE table and CHECK table using Toad, but made no difference.

| version | 5.0.45-community-log |
| version_comment | MySQL Community Edition (GPL) |

Best Place to Begin (no replies)

$
0
0
Dear Forum,

I am wondering where the best place to begin would be for the project I am trying to create. I've looked through the documentation but am still unsure if what I am shooting for is addressed within it:

Basically we have a database on our network which uses an ODBC connector. I've downloaded and installed the driver.

I am not looking to create a MYSQL ODBC connected database from scratch (unless necessary), what we would like to do is to connect to the ODBC database that is already on the network to the MYSQL database I just created, to connect to it as it is and be able to access the information, as well as to synch it with a mirror of itself or create copies of it.

If anyone could indicate the best information source to start at I'd appreciate it. Reading through the documentation it seemed to me as it was written to create a database which has an ODBC connector, not necessarily to connect to an already existing one which has that connector.

Kind Regards,
Ben David

MS-Access to MySQL migration - 32bit ODBC driver (no replies)

$
0
0
I am a beginner with MySQL and my knowledge of ODBC connectors is very limited, so please forgive the question if the answer to this is simple.

I am trying to migrate an old MS-Access database to MySQL on a 64bit Windows7 environment via the MySQL Workbench 6.2 'Database Migration' function. It says that a prerequisite is that I must have an ODBC driver installed for the source database. I don't yet have this, so I'm attempting to install a 32bit driver for MS-Access.

I've read various questions & answers on this topic, but I'm still getting nowhere. Answers on the net indicate that I should be using \windows\sysWOW64\odbcad32.exe to add the driver.

On both the User DSN and System DSN tabs, I have attempted to add a new entry for the Microsoft Access Driver (*.mdb) and specified a Data Source Name and database location which matches my source MS-Access database. After adding them, I can see these entries listed on the User DSN and System DSN tabs, but my attempted migration still tells me that I don't have a MS Access ODBC driver installed. When I check my Windows Registry under the HKEY-LOCAL- MACHINE/SOFTWARE/ODBC/ODBCINST.INI tab, I cannot see anything to suggest that the MS-Access driver has been installed.

Can somebody help point me in the right direction on this ?
Am I making the correct entries via ODBCAD32.EXE ?
Where should I check to ensure that the appropriate driver is installed ?

Many thanks,
Keith

MySQL ODBC Driver 3.51 : System.InvalidOperationException: ERROR - unable to allocate an environment handle. (no replies)

$
0
0
Hi,

I am using MySQL ODBC Driver 3.51 to connect my database from windows machine using C# .Net.

My program is performing multiple inserts & updates in many tables during batch processing. it is working fine for small batch file, however it is giving me below exception when my batch file is huge. i.e. 100K records.

Moreover, my program is using single shared connection throughout processing the batch file. I have observed that my RAM utilization was getting up gradually and went down as soon as execution completes, however for huge file i am getting below exception as soon as my RAM reaches to its cap.

Let me know that how can i resolve this?

System.InvalidOperationException: ERROR - unable to allocate an environment handle.
at System.Data.Odbc.OdbcHandle..ctor(SQL_HANDLE handleType, OdbcHandle parentHandle)
at System.Data.Odbc.OdbcConnection.CreateStatementHandle()
at System.Data.Odbc.OdbcCommand.GetStatementHandle()
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()

Thanks in advance for your valuable input.

Slow performance using mysql 5.3 odbc driver on windows 2008 machine (3 replies)

$
0
0
Hi All,

Third party vendor provides us the data as MySQL database. We use SQL Server and using linked server to MySQL, we get the data.

This was our configuration before:
Sql server Database server: Window 2003 (32 bit), MySql ODBC driver 3.51.16 (32 bit), MySql database 5.1

Now we moved to Windows 2008 (64 bit), MySql ODBC driver 5.3 (64 bit), MySql database 5.1

But the Queries that used linked server to query mySql performance has gone down drastically. It is 3 to 4 times slower. We are not sure why.

Trouble shoot:

1) We wanted to see how it works on Windows 7 machine. So, we installed 5.3 64 bit odbc driver and tried. Performance was very slow.
2)We uninstalled 5.3 version and tried to install 3.51.16 (our original) version. It didn't even install. We had errors.
3)Next, we downloaded 3.51.30 (64 bit) version, installed it. Successfully installed. When we created DSN and tested the connection, it gave error.
I tried many forums to see if anyone has issues like this, but couldn't find any. why is 3.51.16 not getting installed on windows 7 or windows 2008 (64 bit version) machine. Why is latest version 5.3 ODBC connector is giving slow performance. Our DBA did various benchmarks on new dev, test and prod servers.

I appreciate your response.
Thanks,
Prathiba

Bug when connecting to mysql via ODBC driver (from Access) (no replies)

$
0
0
Hello,
we see a strange bug when connecting to MySQL 5.6 from MS Access with latest
ODBC driver (it also happens when using older drivers like 5.1).

Before the correct connecting to the database with the correct user
and the return of the selected data the driver tries to connect
as User 'Admin' to mysql. We see this in an tcpdump from the server and in
wireshark.
Of course such a user doesnt exist.
This also happens agains a MySQL 5.1 database.
The problem with MySQL 5.6 however is that it registers as an connection_error
which raises the counter and when the max_connect_errors limit is reached bans
the host from which we are accessing the database.

looks like this
MySQL Server Greeting proto=10 version=5.6.12-enterprise-commercial-advanced-log
MySQL Login Request user=Admin db=somedatabase
MySQL Response Error 1045
MySQL Server Greeting proto=10 version=5.6.12-enterprise-commercial-advanced-log
MySQL Login Request user=someuser db=somedatabase
MySQL Response OK
MySQL Request Query
MySQL Response OK

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.

Can't Remotely Connect (1 reply)

$
0
0
I can't connect from my Window 7 PC to Linux Server running mySQL Version 5.1.67. What else can I try?

Bind address commented out
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
port= 3306
#bind-address = *
#bind-address = 0.0.0.0
#bind-address = 144.117.144.18
#bind-address = 144.112.53.73
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

Remote Access Enabled
mysql> grant all privileges on *.* to myname@'PC IP Address';
Query OK, 0 rows affected (0.02 sec)

Port listenning
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN -

Does version 5.1.5r1144 work for MySQL 5.6.14? (no replies)

$
0
0
I have installed (unzipped) 5.1.5r1144, 5.1.13, 5.27, 5.3.4 to different directories on Oracle Linux 6.5 64 bit with MySQL 5.6.14. I can run isql against the MySQL 5.6.14 using 5.1.13, 5.27,and 5.3.4.

I'm getting the following error in running isql using 5.1.5r1144 driver:

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'm guessing that 5.1.5r1144 does not work with MySQL 5.6.14. Is there any document which lists out the versions of MySQL server compatible for a specific build of mysql-connector-odbc?

Thanks for any help.

Connector Failing - Install of latest version failing (1 reply)

$
0
0
I have a 2008 server. Installed is MySQL Connector 5.02.06.00.
It is registered. It shows it in the ODBC Data Source Administrator.
It shows the name as MyODBC 5.2 ANSI Driver within the ODBC Data Source Administrator.
It points to MYODBC5A.DLL.
The file is located in C:\Program Files\MySQL\Connector ODBC 5.2\myodbc5a.dll

My connection string is strConn = ("DRIVER={MySQL ODBC 5.2 ANSI Driver};SERVER=LOCALHOST;Port=3306;DATABASE=thedatabase;User=username;Password=password;OPTION=3;")

When I try to connect via an ASP I get this error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
Specified driver could not be loaded due to system error 126: The specified module could not be found. (MySQL ODBC 5.2 ANSI Driver, C:\Program Files\MySQL\Connector ODBC 5.2\myodbc5a.dll).




I am trying to installing the latest version 5.3.4
This is the error I get with either 64 bit or 32 bit version:
Product: MySQL Connector/ODBC 5.3 -- 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 126: The specified module could not be found. (C:\Program Files (x86)\MySQL\Connector ODBC 5.3\myodbc5S.dll)..
Verify that the file MySQL ODBC 5.3 ANSI Driver exists and that you can access it.

Connector OBDC Not Saving Data Source, Cannot Connect to MS Access (2 replies)

$
0
0
Apologies for the complex title name, but I have two problems and I have no idea whether or not they're related!

Running 64bit windows and 32bit access, trying to create a file DSN

Setting up an ODBC connection through Windows 7 with 64bit ODBC connector installed connects successfully to my mySQL database, but comes up with the error that it cannot save the DSN file. What actually happens is that it DOES save the DSN file, but without the password. Manually editing the DSN file with Notepad++ to add the password works, but then using the ODBC configuration will remove it again upon saving. The 32bit version doesn't seem to work at all - I get a message from MS ODBC Administrator saying "General error: Invalid file dsn '[filename]'"

Whichever version I use, MS Access cannot connect - I just get "ODBC--call failed [microsoft][odbc driver manager] data source name not found and no default driver specified (#0)"

To clarify, my MySQL db DOES allow remote access (and tests successfully on ODBC manager), and I've tried mixing and matching 32 and 64bit versions (fully un-installing before installing the other) to no avail.


Any ideas what's going wrong?

MS Access to ODBC Connector Bug (1 reply)

$
0
0
When trying to connect to a MySLQ db through ODBC connector (via a DSN) MS Access can find, link and view the db perfectly the first time it's opened.

However, if the database is closed upon opening it again the connection doesn't work - the connection details come up with the username and password fields blank. Typing in the uname and pword doesn't help (the same details box just pops up with those fields blank again) and it will not connect - unless I go to the link tables dialogue again, link a table (which can be a duplicate of one that's already linked) after which point everything works fine (until of course I close and re-open the database).

This is using Connector 5.3 (32 bit) on a selection of different versions of MS Access (all 32 bit, 2003, 2007 and 2010) on different PCs.

Assistance needed for troubleshooting error (2 replies)

$
0
0
Hi,

I'm new to MySQL and seeing the below error detail on one of my servers. I'm having trouble finding a starting point to research this and wondering if anyone can lend any assistance?

2015-03-05 12:04:19,109 [33] ERROR page_Error.aspx.cs

System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Data.Odbc.OdbcException (0x80131937): ERROR [HY001] [MySQL][ODBC 5.1 Driver][mysqld-5.1.43-community-log]Memory allocation error

ODBC driver - AIX - Mysql community Edition (no replies)

$
0
0
Hello,

I am planning to connect from datastage to mysql community edition db. ODBC drivers provided by IBM doesn't support the connection. Any ideas on how to connect to mysql from datastage ? Also, for building a odbc connector from source code in AIX do we need to install mysql client or any instructions related to this would be greatly helpful.

Thanks,
Chandra

Migration problems from UTF8 to UTF8mb4 (no replies)

$
0
0
Hi,

I am trying to migrate a MySQL 5.5.30 database from UTF8 to UFT8mb4. This is what I have done so far :

# For each database:
ALTER DATABASE database_name CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
# For each table:
ALTER TABLE table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

Now when connection to the database with MySQL ODBC 5.6.1 and doing a fill(select) I get the following excetpion :

System.AccessViolationException occurred
HResult=-2147467261
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=System.Data
StackTrace:
at System.Data.Common.UnsafeNativeMethods.SQLGetData(OdbcStatementHandle StatementHandle, UInt16 ColumnNumber, SQL_C TargetType, CNativeBuffer TargetValue, IntPtr BufferLength, IntPtr& StrLen_or_Ind)
at System.Data.Odbc.OdbcStatementHandle.GetData(Int32 index, SQL_C sqlctype, CNativeBuffer buffer, Int32 cb, IntPtr& cbActual)
at System.Data.Odbc.OdbcDataReader.GetData(Int32 i, SQL_C sqlctype, Int32 cb, Int32& cbLengthOrIndicator)
at System.Data.Odbc.OdbcDataReader.internalGetString(Int32 i)
at System.Data.Odbc.OdbcDataReader.GetValue(Int32 i, TypeMap typemap)
at System.Data.Odbc.OdbcDataReader.GetValue(Int32 i)
at System.Data.Odbc.OdbcDataReader.GetValues(Object[] values)
at System.Data.ProviderBase.DataReaderContainer.CommonLanguageSubsetDataReader.GetValues(Object[] values)
at System.Data.ProviderBase.SchemaMapping.LoadDataRow()
at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping)
at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)
at System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
at Com.DataAccessLayer.FactoryBase.fill(DataSet& ds, OdbcCommand inCommandObj) in c:\Development\Bradspel Web\Website\App_Code\DataAccessLayer\FactoryBase.cs:line 153
InnerException:


If i restore the backup it works fine again? If I install MySQL ODBC 5.6.13 it works also fine but my HOST is stuck on 5.6.1 for now.

Is this a known problem? Is there a way around it? (I Suspect that it is a TEXT field that throws the exception in this case).
Viewing all 1136 articles
Browse latest View live


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