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

Can connector v5.3 cause server v8.0 to crash? (no replies)

$
0
0
I have upgraded my server from 5.7.20 to 8.0
It only seems to stay up a couple of hours, and then crashes. If I disconnect all users from it, then it stays up and no crash (currently over 2 days live).

Could it be that the ODBC connector being used version 5.3 can crash the server?
I am in the process of upgrading all users to the latest 8.0.22 connector version, but I am scared to try the 8.0 server version again because it is a very long process of going from 5.7 to 8.0 since they are on different hardware, and I have very large tables.

Looking through error logs I can't figure out why the server keeps crashing.

MySQL 8 (no replies)

$
0
0
I am using FileMaker 19 on a Windows 2016 server. The database is MySQL 8 because there is functionality I need in that version.
The ODBC driver is the MySQL driver version 8.
I have been having problems with FileMaker not recognising SQL views. Everything works okay but to get FileMaker to recognise the sequel views, I have to go to the database configuration and sync the views. As soon as that is done the application works on a browser from the server and on FileMaker pro or a client.If I log off and log back on again, I have to re-sync the views.I'm not having any other problems.
Looking at the documentation FileMaker only supports MySQL 5.7.

I don't know if there are options to use on the ODBC driver or whether FileMaker need to change the code.

Is there any way around this problem please otherwise my only option is to move to another database which is going to be a lot of work.

Thanks

Andy

error while executing stored procedure from java code (no replies)

$
0
0
I am getting the below error message when the stored procedure is getting called from my java code.

mysql server version: 5.6
jdbc connector: mysql-connector-java-5.1.16-bin.jar


Error retreiving database metadata; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Could not get Connection for extracting meta data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (The connection property 'autoReconnect' only accepts values of the form: 'true', 'false', 'yes' or 'no'. The value 'true,noAccessToProcedureBodies=true' is not in this set.

i have given the permission to execute the procedure. Not sure why i am getting this error. Please help me to resolve this issue.

ODBC parallel query performance issue using C++ (1 reply)

$
0
0
I have a program on C++, connecting mysql8.0 using mysqlodbc 8.0.18 and MSADO.

Here is the program structure: There is one main thread which collects data from a file repeatedly. It dispatches the data to several worker threads. Each worker thread has its own connection to a Mysql8.0 database. And once they get data from the main thread, they will insert the data into the target database. All the threads work concurrently. The program runs on a machine with 40 cores.

I find that as the number of the work threads grows, the performance goes better then worse, even when the number of thread keeps less than 40. It seems that there is a limit on the number of parallel threads in Connector/ODBC. Once the total number exceeds the limit, the performance gets worse.

How can I config this limit?

incorrect string value (no replies)

$
0
0
I work in Rad studio 10.4, using ODBC 8.0 UNICODE Driver.
I am trying to insert blob data into table with column type LONGBLOB from memory stream in c++ code. I have correct connection, cause i can read and insert data from other tables. My connection string (some fields from form):

TestConnectionString = "Provider=MSDASQL.1;Driver={MySQL ODBC 8.0 UNICODE Driver};" "Server=" + TestServerName + ";Database=" + TestDatabaseName + ";User=" + TestUserName + ";Password=" + TestUserPassword + ";Charset=utf8mb4;Option=3;";

I checked all char sets and all seems to be correct:

'character_set_client', 'utf8mb4'
'character_set_connection', 'utf8mb4'
'character_set_database', 'utf8mb4'
'character_set_filesystem', 'binary'
'character_set_results', 'utf8mb4'
'character_set_server', 'utf8mb4'
'character_set_system', 'utf8'
'collation_connection', 'utf8mb4_unicode_ci'
'collation_database', 'utf8mb4_unicode_ci'
'collation_server', 'utf8mb4_unicode_ci'

But then i try to insert blob to one table, i have an error
Code:
ADOCommand->Parameters->ParamByName(FieldName)->LoadFromStream(CurvesSrotageItem->ExtraCurves.at(i).ms, ftBlob);
ADOCommand->Execute();
while (ADOCommand->States == TObjectStates() << stExecuting)
Sleep(100);

error:
[MySQL][ODBC 8.0(w) Driver][mysqld-8.0.22]Incorrect string value: '\xA0\xA4@]\x00\x00...' for column 'Diagram' at row 1

I have exactly the same code for another table (tables fully identical) and it works fine. What's the problem? What else i need to do?

MySQL Connector/ODBC 8.0.23 has been released (no replies)

driver error (no replies)

$
0
0
Changes in MySQL Connector/ODBC 8.0.19 (2020-01-13, General Availability): "With prepared SELECT statements the fixed-length numeric types such as INT were set to 0 instead of their stored value. (Bug #30428851, Bug #97191)".
Because of changes done on Memory engine tables the error occurs accidentally during SqlExecute command, and client program crashes. The error arise because of Connector/ODBC driver.
Such error doesn't occur with Connector/ODBC 8.0.18 and earlier versions. Please, correct the error.

Very slow when connection lost (no replies)

$
0
0
I am running the MySQL connector with ADODB in VBA in Excel. I am maintaining a persistent recordset which the user can move through with various buttons. If the connection gets temporarily dropped, then subsequent operations on the recordset cause the program to hang for about 3 minutes before returning an error. I cannot find any timeout setting anywhere near 3 minutes. How can I get the program to respond more quickly in this situation, or alternatively detect the connection has dropped?

Microsoft OLE DB Provider for ODBC Drivers error '80004005' (1 reply)

$
0
0
Dear experts,

I need your help with error: "

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager]Data source name not found and no default driver specified."

I've looked at numerous posts but none helped me. :'(

MySQL database server is running on Windows10 64bit.

Client Excel where the VBA code is running is 64 bit.

64 bit odbc manager is configured with System DSN, and the name is the defined in connection string in Excel ADODB connection string.

64bit & 32 bit ODBC driver has been installed on MySQL server as well.

I really need your help on resolving the error which occurs when ADODB Connection.open function is called.

Just FYI,
I've granted user permission on both server level as well as MySQL lever

VBA connection string looks like:

Driver={MySQL ODBC 5.3 Unicode Driver};Server=" & serverAddress & ";Database=jkydb1;Uid=agent;pwd=password;Connect Timeout=500;OPTION=16427"

Incoming rules of MySQL server firewall is also added.

Appreciated!

Using MySql's ODBC driver as an intermediary (1 reply)

$
0
0
I need to send Power BI's data requests to an ODBC driver which will then forward the requests to a legacy Visual FoxPro application.

Unfortunately, such an ODBC driver is not available. Instead, we would like to use MySql's ODBC driver as an intermediary.

In other words, we want to send Power BI's data requests to a copy of MySql's ODBC driver, and then forward the output of that copy to the legacy app, which will parse it and return the resulting data back up all the way to PowerBI.

How would the copy of the SQL Driver need to be configured in order to redirect its output in the way described?

Thank you very much

Alex

mysql-connector-odbc-8.0.23 and MS Access cannot link MYSQL table with compound primary key (no replies)

$
0
0
Scenario: A MYSQL database contains a table with a composite primary key (the primary key comprises 2 columns like so:

CREATE TABLE stations ( station CHAR, date DATE, PRIMARY KEY (station, date) )

On a windows computer a "user dsn" to the MYSQL database is established via the ODBC Administrator. The driver is the MYSQL ODBC connector.

In MS ACCESS (2016) the table "stations" is linked using the "user dsn" for the MYSQL database.

In MS Access, the database connection works fine. The table is linked and appears in the access database. In the design view the database fields are all correctly displayed, and the two columns "station and data" are correctly marked as primary key. However, as soon as I open the table I get the error ODBC--call failed. And all the database fields contain "#Name?".

If I "import" the table instead of link it, all data correctly downloads and can be viewed and worked on in MSAccess. If I remove the primary keys from the table in the MYSQL database, then the very same linked table correctly connects and contains all data.

Why is MS Access apparently uncapable of linking in MYSQL tables with compound/composite primary keys? Is there a solution or workaround?

MySQL ODBC Connector *8.0.23* 'Malformed communication packet' with ADO.NET DataAdapter (no replies)

$
0
0
Case: ADO.NET DataAdapter, inserting a new row containing long text to be inserted into a %TEXT column, without specifying values for columns after it.

Sample code below fails with MySQL ODBC Connector 8.0.23 connecting to 8.0.23 server, due to:
ERROR [HY000] [MySQL][ODBC 8.0(w) Driver][mysqld-8.0.23]Malformed communication packet.

It works as expected when:
- using MySQL ODBC Connector 8.0.22 with 8.0.23 server
- using MySQL ODBC Connector 8.0.23 with an earlier server version
- text length is <= 8183.

Connector 8.0.23 bug?



public void TestOdbc8023_DataSet()
{
string longText = "";
for (int i = 0; i < 8184; i++)
longText += "a";

using (var conn = new System.Data.Odbc.OdbcConnection("DSN=VM"))
{
conn.Open();

// Create table
var createTableSql =
@"CREATE TABLE IF NOT EXISTS test_malformed (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name MEDIUMTEXT NOT NULL,
deleted TINYINT DEFAULT NULL
) Engine=InnoDB;";

using (var cmd = new System.Data.Odbc.OdbcCommand(createTableSql, conn))
{
cmd.ExecuteNonQuery();
}

// Setup adapter + DatSet
using (var adapter = new System.Data.Odbc.OdbcDataAdapter("SELECT * FROM test_malformed WHERE 1 = 0", conn))
using (var builder = new System.Data.Odbc.OdbcCommandBuilder(adapter))
{
var dataTable = new System.Data.DataTable("test_malformed");
adapter.Fill(dataTable);

// insert
var row = dataTable.NewRow();
row["name"] = longText;
dataTable.Rows.Add(row);

adapter.Update(dataTable);
}
}
}

mysql odbc parameters (4 replies)

$
0
0
Hi there

I am currently doing a report with SQL Reporting Services with Visual Studio 2019.

I have already created the ODBC and managed to connect to the Database, the problem is that I have a Query that runs perfectly on Microsoft's SQL Server, but when I try to run the same query with the settings in MySQL it doesn't work.

Query:

SELECT * FROM view_evaluacionmedica
WHERE IF(@IdSrs=-1,1,IdRegionSeg) = IF(@IdSrs=-1,1,@IdSrs)
AND IF(@IdProvincia=-1,1,IdProvinciaSegui) = IF(@IdProvincia=-1,1,@IdProvincia)
AND IF(@Zona=-1,1,ZonaSeguimiento) = IF(@Zona=-1,1,@Zona)
AND IF(@IdUNAP=-1,1,IdUNAPSeguimiento) = IF(@IdUNAP=-1,1,@IdUNAP)
/*AND FechaInsert BETWEEN @FechaInicial AND @FechaFinal */
ORDER BY FechaInsert DESC

Impossible to cal a stored Proc containaing parameters from Excel 2016 using ODBC driver (2 replies)

$
0
0
Hello, I'm confronting with an issue on Excel 365 Using ODBC MySql Driver (latest version). DB is located on AWS and running MySql 5.7.26

as soon as I call a Stored Procedure with parameters I get an error and there is no way to have the results.
On the sql Query the command is {call sp_GetResults(?,?,?,?,?) with 5 parameters. I'm able to link the parameters (?) with their respective cells in Excel. However calling the query, I get a error :
[MySQL]ODBCC 8.0(w) Driver][mysqld-5.7.26]

Looking at the Event log :

Microsoft Excel
[MySQL][ODBC 8.0(w) Driver][mysqld-5.7.26]
P1: 100749
P2: 16.0.13628.20274
P3:
P4:

Any help would be very appreciated.

Mysql Workbench migration wizard (no replies)

$
0
0
Can we use Mysql workbench migration wizard to migrate from informix database to mysql database? Or this wizard is restricted only to certain specific databases migration?

SQLGetTypeInfo (no replies)

$
0
0
I used c++'s poco Library's ODBC module to manipulate the database. In the poco source code, I called SQLGetTypeInfo to get the field information supported by the database, varchar type COLUMN_SIZE field is 255 all the time, which results in an error when inserting a long string. What can I do to avoid this problem

Connection Issue: Should be simple but... (3 replies)

$
0
0
I've been using the OBDC connector since 2008 on three Windows computers in my office. We use the connector to allow standalone UPS shipping software to connect to our website MYSQL database and pull shipping address information. We've never had any problems with this. We use on older version of the connector (3.51). I know I should upgrade and I will do so if I can resolve this current issue.

So, I just bought a new computer for the office and have everything running except the ODBC connector. We've always had a very simple install of this connector... just add the server DB IP and port, user name, password, database name and off we go. Our website server is set up to only allow connections from our static IP.

With the install (again 3.51) on new computer, I'm getting a strange error message immediately after clicking the 'test' button -

Connection Failed: [HY000] [MYSQL}{ODBC 3.51 Driver] Access denied for user 'xxx_upscon' @ 'static-71-121-182-xx.bltmmd.fios.verizon.net' (using password: YES)

(The x's in the failure message are just there for our privacy.)

The weird thing is that the 71-121-182-xx IP is our IP address. It is not the IP address I have in the TCP/IP Server field where our server is located.

This same username and password and connection method work perfect on three other computers in the office.

Any advice as to why this is happening would be greatly appreciated. We are stumped.

Horiba's mass flow controller is distributed in Vietnam by Asin (no replies)

$
0
0
Horiba's mass flow controller is distributed in Vietnam by Asin. Horiba's mass flow controllers account for 60% of the market share, leading the world over.
Mass flow controllers are used in industries automotive emission measurement systems, environmental measuring instruments, a wide range of scientific analyzers, and medical diagnostic analyzers and measuring equipment used in the semiconductor industry.
Horiba genuine mass flow controller is exclusively distributed in the Vietnamese market by Asin Vietnam.
If you have any need for equipment, please contact us - Hotline:0846180222/Website: www.asin.com.vn

write SQLIte table from MySQL table (4 replies)

$
0
0
Helo, I'am from Hungary. Please, send me some words about the solution of next problem: I like to write data to a SQLite table which is in a MySQL table. I searc any DB link structure in MySQL, but don't find nothing. Thanks for any answere.

MySQL Connector/ODBC 8.0.24 has been released (no replies)

Viewing all 1136 articles
Browse latest View live


Latest Images

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