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

ODBC 5.22 and Excel 2007 (1 reply)

$
0
0
Hello, I am just getting into Mysql at home to learn a new language, and all has been going fairly well. I'm using Community Server 5.5.28, and Workbench 5.2 CE, with a good training manual to help me along.

I'd like to start working with my data through Excel and Access, so I downloaded the ODBC driver 5.22 and installed it. I believe everything installed correctly, but whenever I try to connect it can't find the server, I always get the popup "SQL server does not exist or access denied". I have tried localhost as server name, as well as mysql (which I named the odbc connection), but I never get anywhere. (I have verified that the service is running)

I think I have everything configured ok (the odbc test always works), and my username and password work for Workbench. Can anyone offer some advice? Or perhaps a step-by-step installation for the ODBC, just to make sure I haven't done something wrong? Thank you!

Mike

ODBC & Triggers (no replies)

$
0
0
Hi
I just stumbled across some issue.
I am using ODBC and MyODBC 5.2w on a Classic ASP app.
We wanted to introduce some triggers on one of our tables. We tried this on dev but it would appear that triggers are not fired when a recordset.update command is issued. Is that right? I seem to have read ODBC doent't fire triggers but wanted to ensure I got this right or if it should instead fire them.

I found a sort of way around this by issuing UPDATE commands directly and that works however it forces me to change some of the programming that has been in place in this app for many years so if there was a way for me to tell the ODBC driver "yes please fire the triggers" that would be great.

Any idea anyone?
Thanks for reading.
Vincent

Problem with executing stored mysql procedure from .net (no replies)

$
0
0
I have a stored procedure in a Mysql database see below

CREATE DEFINER=`root`@`localhost` PROCEDURE `EPOD_USER_SEARCH`(
vvvEPL_SITE_ID varchar(10),
vvvEPL_USER_ID varchar(10),
vvvEPL_USER_PASSWORD varchar(100),
vvvEPL_USER_NAME varchar(40),
vvvEPL_USER_ADMIN varchar(1),
vvvEPL_USER_ACTIVE varchar(1),
vvvEPL_USER_ACTIVITY_DATE int,
vvvEPL_USER_ACTIVITY_TIME int,
vvvEPL_USER_VEHICLE varchar(10),
vvvEPL_USER_LOAD varchar(12),
vvvEPL_USER_JOB varchar(10),
vvvEPL_LAST_CHANGED_DATE int,
vvvEPL_LAST_CHANGED_TIME int
)
BEGIN
SELECT `EPL_SITE_ID`,`EPL_USER_ID`,`EPL_USER_PASSWORD`,`EPL_USER_NAME`,`EPL_USER_ADMIN`,`EPL_USER_ACTIVE`,
`EPL_USER_ACTIVITY_DATE`,`EPL_USER_ACTIVITY_TIME`,`EPL_USER_VEHICLE`,`EPL_USER_LOAD`,`EPL_USER_JOB`,
`EPL_LAST_CHANGED_DATE`,`EPL_LAST_CHANGED_TIME`
FROM `EPOD_USER`
WHERE `EPL_SITE_ID` LIKE COALESCE(vvvEPL_SITE_ID, '%')
AND `EPL_USER_ID` COLLATE SQL_Latin1_General_CP1_CI_AS LIKE COALESCE(RTRIM(vvvEPL_USER_ID), '%')
AND `EPL_USER_PASSWORD` LIKE COALESCE(vvvEPL_USER_PASSWORD, '%')
AND `EPL_USER_NAME` COLLATE SQL_Latin1_General_CP1_CI_AS LIKE COALESCE(RTRIM(vvvEPL_USER_NAME), '%')
AND `EPL_USER_ADMIN` LIKE COALESCE(vvvEPL_USER_ADMIN, '%')
AND `EPL_USER_ACTIVE` LIKE COALESCE(vvvEPL_USER_ACTIVE, '%')
AND `EPL_USER_ACTIVITY_DATE` BETWEEN COALESCE(vvvEPL_USER_ACTIVITY_DATE, 0) AND COALESCE(vvvEPL_USER_ACTIVITY_DATE, POWER(2., 31) -1)
AND `EPL_USER_ACTIVITY_TIME` BETWEEN COALESCE(vvvEPL_USER_ACTIVITY_TIME, 0) AND COALESCE(vvvEPL_USER_ACTIVITY_TIME, POWER(2., 31) -1)
AND `EPL_USER_VEHICLE` LIKE COALESCE(vvvEPL_USER_VEHICLE, '%')
AND `EPL_USER_LOAD` LIKE COALESCE(vvvEPL_USER_LOAD, '%')
AND `EPL_USER_JOB` LIKE COALESCE(vvvEPL_USER_JOB, '%')
AND `EPL_LAST_CHANGED_DATE` BETWEEN COALESCE(vvvEPL_LAST_CHANGED_DATE, 0) AND COALESCE(vvvEPL_LAST_CHANGED_DATE, POWER(2., 31) -1)
AND `EPL_LAST_CHANGED_TIME` BETWEEN COALESCE(vvvEPL_LAST_CHANGED_TIME, 0) AND COALESCE(vvvEPL_LAST_CHANGED_TIME, POWER(2., 31) -1);
END


This procedure can be sucessfully called from SQL workbench and returns the correct data,however when called from a .net application as follows

using (DbCommand cmd = EPOD_DBCONNECTION.GetDbCommand())
{
cmd.CommandType = CommandType.StoredProcedure;
cmd.Connection = EPOD_DBCONNECTION.DBConnection;
cmd.CommandText = "EPOD_USER_SELECT";

cmd.Parameters["@EPL_SITE_ID"].Value = EPL_SITE_ID;
cmd.Parameters["@EPL_USER_ID"].Value = EPL_USER_ID;

using (DbDataReader reader = cmd.ExecuteReader())

When the data reader executes the following exception is raised


{"ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.5.23-enterprise-commercial-advanced]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'EPOD_USER_SELECT' at line 1"}


Any ideas?

Looking for Windows 2003 ODBC driver Version 3.51.06 (no replies)

$
0
0
Unfortunately the last windows MySQL/ODBC driver availabe from the archives is ver 3.51.07 but I need 3.51.06. Is there any way to get it from an authorized source? The reason I need this driver is that there is an apparent bug when I try to use any later drivers. For some reason database values disappear from query results after first access in ASP classic vbscript code.

MySQL and Access (Linked Tables) (no replies)

$
0
0
Hello,

When attempting to set-up a linked table (External Data > Import > ODBC Database > Link to the data source by creating a linked table) within Access 2010, I am experiencing the following error message after selecting my data source:

ODBC--call failed.

[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application (#0)

The data source was set-up as a Machine Data Source (User) through the ODBC Data Source Administrator using the downloaded driver "MySQL ODBC 5.2w Driver". The connection test from within that set-up reports "Connection successful". Note that the same issue occurred with the "MySQL ODBC 5.1 Driver".

5.2.2 (Windows 7, 64-bit)

Any suggestions greatly appreciated.

Thanks!
Vanessa

ODBC Support for ADODB::adBookmark (no replies)

$
0
0
Hi,

we are developing a Powerbuilder application and to use a external /COM object we pass a ADO recordset Object. We use ADO Connection over ODBC driver. I know this is not elegant, but since we are not using .net in PB and mysql doen't any more have adodb connector, we've decided to go this way.

My question now is, would it be possible that using MySql ODBC Connector for recordset to support ADODB::adBookmark?

I'm not into detail on this subject, I just know that the /Com object we use needs for the ADO Recordset to support

rs.Supports( ADODB::adBookmark )
rs-Supports( ADODB::adNotify )

Whilst adNotify is true adBookmark isn't.

Any chance that ODBC driver would support ADO Bookmark feature?

regards

Peter

Mac 10.8- MySQL Connctor/ODBC 5.2.2 location (no replies)

$
0
0
I am trying to load MySQL Connctor/ODBC 5.2.2 onto my macbook pro OS 10.8.

I downloaded the package and it seemed to install. However, I now can't find it on my macbook.

It seems I should have a "manager" in my application | Utilities. But nothing is there. I can't seem to find it anywhere.

Anyone with experience with this connector and Mac OS 10.8?

Configure sending of idle packets to keepalive a ODBC connection (no replies)

$
0
0
Hi,

we have a problem of firewalls between client and server cutting idle TCP connection after 10 minutes.

We are using a windows application which uses ODBC to connect to a MySQL Server.

Unfortunately we have no possibility to configure any keepalive options. Neither in the application itself nor in the ODBC connection settings.

Even with automatic reconnect enabled the application kinda breaks when not being used for 10 minutes.

Are we missing something here?

Where can I submit change requests for the MySQL ODBC Driver for windows, so that future version may contain such an option?

Greetings
-Marko

Crystal Reports ODBC-Mysql (no replies)

$
0
0
I am using visual studio ultimate 2010 & Crystal report & connection (net & ODBC)

Problem : Add Crystal Report ODBC connection ( setting DSn) Succesfull, but the choice add FIELD TABLES .....Field Name+'1'


example : Table Employee ( NIK,NAME,ADRRESS,TELP ) add ODBC to list

Employee (NIK1,NAME1,ADRESS1,TELP1)

Thanks
Email : zainul_two@yahoo.com

Datastage odbc connector (no replies)

$
0
0
Hi

Did someone installed successfully odbc driver on solaris 10 64bit SPARC for connecting Datastage 8.1(32 bit) to 5.5.27-log MySQL Community ?

Any driver that we try to install exactly as the Installation instructions,
return at the connection attempt the error: BCI Error :
SQLSTATE=IM003,CODE=0,[DataStage][SQL Client][ODBC][DataDirect][ODBC lib] Specified driver could not be loaded.


Regards

H.

Connector/ODBC Memory Leak on Windows (no replies)

$
0
0
I believe that I have found a memory leak on Windows. The problem happens when I use SQLPrepare with a bound input parameter. To demonstrate this, I wrote a loop that opens a connection then prepares a statement with a bound input variable. The table in the SQL statement exists and the referenced column is the primary key. The table is empty. I can see in Task Manager that it eats up an addition 100 KB every minute. For this example, I removed the call to SQLExecute as the memory leak occurs both with and without it. It does not happen if I comment out SQLPrepare. It does not happen if there is no input variable to prepare.

This occurs with both the 32-bit and 64-bit ODBC drivers. I am using "MySQL ODBC 5.2w Driver", version 5.02.02.00. This also occurs on the 5.1 driver, so it has been around for a while. If anyone can help me, I would appreciate it.

int64Value = 0;
while (Connect())
{
SQLAllocHandle(SQL_HANDLE_STMT, ih_SQLConnectionHandle, &deleteStatementHandle);

if (SQLBindParameter(deleteStatementHandle, 1,
SQL_PARAM_INPUT, SQL_C_SBIGINT, SQL_BIGINT,
0, 0, &int64Value, 0, 0) != SQL_SUCCESS)
break;

if (SQLPrepare(deleteStatementHandle, (SQLCHAR *) "delete from WWWWRangeTest where LowerLimit=?", SQL_NTS) != SQL_SUCCESS)
break;

SQLFreeHandle(SQL_HANDLE_STMT, deleteStatementHandle);

SQLDisconnect(ih_SQLConnectionHandle);
Sleep(10);
}

Hourly data sync from local MSSQL 2005 to AWS mySQL (no replies)

$
0
0
Server details
SQL Server 2005 version is version 9.0.4035
I have also tried to run the SSIS package on our SQL Server 2008 version 10.0.2531, pulling the data from 2005 and moving it to mySQL.

Connector Details
.NET framework is 3.5 SP1
For mySQL, I am using the "mySQL Connector/Net 6.6.4"

I have seen that information about the mySQL ADO provider, but was hoping that someone knew of a workaround, or there was an update that I was unable to find.
I did try to use an ODBC source for mySQL data destination and do have it configured and can set the ANSI setting, but unfortunately ODBC cannot be a destination only OLE DB and ADO (as far as database destinations go).

I have also tried to use the ADO.NET ODBC driver but first, I receive an error when trying to use the dropdown box to select the table.
"Could not retrieve table information..." "...Attepted to read or write to protected memory..."

When I type in the table name and “preview” I receive this error.
TITLE: Microsoft Visual Studio
------------------------------
Error at Export tblmember [ADO NET Destination [465]]: Failed to get properties of external columns. The table name you entered may not exist, or you do not have SELECT permission on the table object and an alternative attempt to get column properties through connection has failed. Detailed error messages are:
ERROR [HY010] [MySQL][ODBC 5.2(w) Driver][mysqld-5.5.27]
… repeated many many times …
ERROR [HY010] [MySQL][ODBC 5.2(w) Driver][mysqld-5.5.27]

Object reference not set to an instance of an object. Error at Export tblmember [ADO NET Destination [465]]: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Data.Common.UnsafeNativeMethods.SQLFreeStmt(OdbcStatementHandle StatementHandle, STMT Option)
at System.Data.Odbc.OdbcStatementHandle.FreeStatement(STMT stmt)
at System.Data.Odbc.CMDWrapper.FreeStatementHandle(STMT stmt)
at System.Data.Odbc.OdbcDataReader.Close(Boolean disposing)
at System.Data.Odbc.OdbcDataReader.Dispose(Boolean disposing)
at System.Data.Common.DbDataReader.Dispose()
at System.Data.Odbc.OdbcCommand.DisposeDataReader()
at System.Data.Odbc.OdbcCommand.CloseFromConnection()
at System.Data.Odbc.OdbcReferenceCollection.NotifyItem(Int32 message, Int32 tag, Object value)
at System.Data.ProviderBase.DbReferenceCollection.Notify(Int32 message)
at System.Data.ProviderBase.DbConnectionInternal.NotifyWeakReference(Int32 message)
at System.Data.Odbc.OdbcConnectionOpen.Deactivate()
at System.Data.ProviderBase.DbConnectionInternal.CloseConnection(DbConnection owningObject, DbConnectionFactory connectionFactory)
at System.Data.Odbc.OdbcConnection.Close()
at Microsoft.SqlServer.Dts.Runtime.ManagedHelper.CloseManagedConnection(Object managedConnection)
at Microsoft.SqlServer.Dts.Runtime.ConnectionManager.ReleaseConnection(Object connection)
at Microsoft.SqlServer.Dts.Pipeline.ADONETDestination.ReleaseConnections()
at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostReleaseConnections(IDTSManagedComponentWrapper100 wrapper)

------------------------------
ADDITIONAL INFORMATION:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (Microsoft.SqlServer.DTSPipelineWrap)

------------------------------
BUTTONS:

OK
------------------------------

If I then “preview” again, I will get the normal preview with no data, as none has been entered yet.
I then try to check the mappings but there are no columns from the mySQL DB, and as such, the “OK” button is greyed out.
This is the same for both the 64 and 32 bit ADO ODBC drivers.

I have also tried the mySQL ADO provider with the same results as the ADO provider.

The test system is SQL 2008 (10.0.2531) moving data between SQL 2005 (9.0.4035) and AWS mySQL.
Tested senerios have been
ADO MS SQL to ADO.NET mySQL
ADO MS SQL to mySQL connector mySQL
ADO MS SQL to ADO ODBC mySQL
ADO MS SQL to ODBC mySQL (not fully tested as destination cannot be an ODBC)
ADO MS SQL to ADO ODBC mySQL

According to the send link “Connecting to MySQL from SSIS” (http://blogs.msdn.com/b/mattm/archive/2008/03/03/connecting-to-mysql-from-ssis.aspx), should be able to set up an ODBC connection, and by following the example of DSN of “DRIVER={MySQL ODBC 5.1 Driver};SERVER=<host>;DATABASE=mydb;UID=root”, setting the driver to the current 5.2.2 and other setting to our server setup I get this error.
"Test connection failed because of an error in initializing provider..." "...Data source name not found and no default driver specified"

I have also setup both a 64bit and 32bit system DSN and have tried to use those but no luck there either.

This is why I went back to the ADO driver, since it would actually connect and I could pull data and configure the workflow. It seems that every ODBC path that I take, there’s an init/adding/config error that blocks createing either the data source or the data flow destination.

ODBC Connection Issue (no replies)

$
0
0
Well this post/question will probably be horribly asked. Not a very common action to come to a help forum to ask questions. I will do my best to explain my issue and thank you for reading my question.

Currently I am running a MYSQL server on CentOS server. The version is 5.1.61 and is on the local network. Now the server will connect to my web application and converse fine that is on the same server so its understandable that it works. Next I connect to the mysql with HeidiSQL or Navicat depending on the computer I am on. I have not tested though an outside connection so in this case all I have used it on is in the local network.

Now my issue is that I can not connect to the MYSQL server with ODBC. Currently the computer I am trying to connect to MYSQL with ODBC is a windows 7 64 bit computer. The farthest ive got error wise is the Client/Server Code 11. I have been doing searches and research and closest it seems the connection will be is the error code 11. Now that had a common thought based on my search is that the server is not listening to port connections 3306 or 1413(Pipeline Port?)? I use 3306 for heidisql without a SSL connection so not sure the true differences between my ODBC connection settings vs my heidisql connection settings. Ive pinged the server from this location after every test to make sure the changes I have altered did not mess with the communication at all. I have also tested to make sure the server is listening to the given ports with netstat. The server is listening to 3306 and 1413(?) as it should. Given the users I am using to connect to the server I have given them permission in MYSQL to connect from the computer I am trying to connect from. I am lost on what else to attempt. Oh also the ODBC driver I am using is SQLSRV32.DLL 6.01.7601. I could not exactly find a 64 bit driver for windows 7. I did not try that hard to find it. I am just at the point of pulling my hair out to fix this one issue.

Thank you for your time and hopefully this can be solved within this topic.

ODBC and Com_stmt_prepare (no replies)

$
0
0
Hi

I'm using application like SMS Reception Center with MySQL connect by ODBC driver.
This application is running all time and after sending query to DB the variable 'Com_stmt_prepare' is increment. When is over limit (max_prepared_stmt_count) I get error that 'Can’t create more than max_prepared_stmt_count statements (current value: 16382)'.
Of course I can change the than max_prepared_stmt_count to one million but after longer time I get the same error.

How can I reset or to lower value of max_prepared_stmt_count without restarting MySQL?

Thanks

ODBC driver location and configuration (no replies)

$
0
0
Hi,

Recently our system administrator installed Connector/ODBC 5.2.2 on our Linux server. I'm trying to locate the driver to put in the odbc.ini file. Could someone give me some asistance?

Thanks

OS = Linux 5.6 64bit
MYSQL ODBC version = 5.22

Max_used_connections AND my.cnf max_connections AND ODBC (2 replies)

$
0
0
Hi
I have a question related Max_used_connections and ODBC connection.

I have a mysql server that is only used via ODBC connection ( 3 conections), I can see that "show global status like 'Max_used_connections'" value = 3 and "show processlist" show 3 connections so, I think that all new incoming connections use ODBC so the variable Max_used_connections is not incremented.

In this case the parameter max_connections in my.cnf not be greater than 3.This is so? All new connections via ODBC will no open a new mysql connection ,so I can set my.cnf max_connections to 3 to optimize mysql server,right?

Thanks for your experience!

ODBC Administrator and Data Source (ODBC) (no replies)

$
0
0
Hi,I have installed MYSQL connector 5.2.2 in my Windows 7 64bit system.Before installing this there was only Data Source ODBC.After Installing ODBC administrator is showing and this MYSQL connector is not displaying in that administrator.So please suggest a solution

how to add mysql driver to odbc (no replies)

$
0
0
how to add mysql driver to odbc?

ODBC connection using SSH (no replies)

$
0
0
I can connect to mysql using TCP/IP over SSH. However, i am not sure how to create an ODBC connection using TCP/IP as it only allows one IP address to be entered? Has anyone done this before?

The issue is that we are using a reporting tool (qlikview) that used odbc to connect to mysql and odbc connection is unsuccessful.

ODBC-ODBC bridge (no replies)

$
0
0
Hello,
I have a mysql db running on one linux server.
With an odbc connection for a web server on another linux box.

I would like to be able to use the/an odbc connection to the web server, to access mysql. This would be for an app that is running on client machines.

I have done some googling, and there might be something called an ODBC-ODBC bridge.

I would like to just get a correct direction to go. So I don't head in the wrong direction.

If someone could point me at a bridge software. Or a tutorial. etc...

thanks
Viewing all 1136 articles
Browse latest View live


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