I'm using MS Access as frontend (in Windows), MySQL Server as DB (in RedHat) and ODBC to connect both.
I use linked tables in Access.
I have a huge table and always I try to get it, throw an exception:
"ODBC--call failed.
[MySQL][ODBC 8.0 (w) Driver][mysqld-8.0.16] Query execution was interrupted, maximum statement execution time exceeded (#3024)." (Always at 60 seconds)
I've tried everything. I can't find anything which can help me in the documentation or looking online.
I read post from years ago which mention to use "readtimeout or MYSQL_OPT_READ_TIMEOUT" in the registry editor (regedit.exe) and nothing. In the documentation appear that this option are not available since version 5.1.12.
I have no idea what can I do to delete or increase the timeout. Help!
Versions:
MySQL Server: 8.0.16 (Running on RedHat 7.5),
MS Access 365 (Running on Windows 10),
MySQL ODBC 8.0.15
Related
I've got a legacy project which runs some queries every minute to an Access database. All the queries work fine but after a certain amount of time (multiple weeks) and then all of a sudden Internal OLE Automation errors start appearing left and right. It first starts with one query giving an error and then slowly but surely all the queries will generate the error.
My gut feeling says this is a timeout issue but I don't have any clue where to start.
In advance: I know Access databases are horrible and that I shouldn't be using the JDBC-ODBC bridge in production environments but as I said this is a legacy project which we're still supporting.
Please do let me know if you need any additional information or code snippets.
Edited to add: The error is always java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Internal OLE Automation error For this specific server we use Java 6, Tomcat 6, Windows Server 2012 and the ms access driver native in Windows on version 6.03.9600.17415. They are all the 32 bit versions.
We have one java application, which uses mysql db as back end.
Mysql 5.7.17 is installed on windows server 2012 R2 Standard
The issue is that our java application crashes mysql database,
We enabled logs and found out that there is this specific query that crashes mysql.
If I copy this query from the logs and run it in Workbench it crashes mysql and I get "Lost connection to mysql during query"
I tried increasing , max packet size, net read timeout to no avail.
To drill further , I installed same version mysql on another VM windows server 2012r2 standard , and here the query works fine, without any issues.
below is the query from the logs:
select userorgani0_.id as id1_16_,
userorgani0_.authority as authorit2_16_,
userorgani0_.organization_module_id as organiza3_16_,
userorgani0_.user_id as user_id4_16_
from user_organization_module userorgani0_
where userorgani0_.organization_module_id='2c9e85c75a4025ed015a402b72040004'
and userorgani0_.user_id='1rhdhdwi22c23214kcskcsk'
Could you please help me here.
regards,
RVS
I am running IIS 8.5 on a Windows 2012 R2 virtual server.
The server has MySQL Server 5.5.44 installed, and I connect to it using Classic ASP pages via a MySQL ODBC 5.1 Driver.
Recently I have been getting issues in my error log with errors such as:
[MySQL][ODBC 5.1 Driver][mysqld-5.5.44]Error on delete of 'C:\Windows\TEMP\#sql1718_1ca27_2d.MYI' (Errcode: 13)
And
[MySQL][ODBC 5.1 Driver][mysqld-5.5.44]Can't find file: 'v_pdf_log' (errno: 2)
I have been able to normally go into the MySQL admin application (SQLYog) and repair the database, and the problem is fixed.
However, I think someone is trying to break the site as some strange URLs are getting called, such as:
mysite/mypage.asp?id=999999.9"+%2f**%2fuNiOn%2f**%2faLl+%2f**%2fsElEcT+0x393133353134353632312e39+and+"0"="0
These are URLs from Moscow. Presumably this is an SQL Injection attack is it?
Can they somehow delete actual MD Files from the MySQL folder? Presumably not, but they have done something.
And yes, I'm a stupid person who didn't parameterise my queries in my code...
Use Parameterized queries and give the DB login the least privilege possible.
Also use stored procedures whenever possible
I know this question has been asked on here before, but it seems like I've tried everything suggested in this answer and this answer, and still no luck. I'm trying to use MySQL Workbench 6.3 on a Windows 10 client, connecting to a Linux MySQL server hosted by GoDaddy/cPanel.
I can connect to the MySQL server with no problems, and usually I have time to run a query or two. Then, within a minute of inactivity between Workbench and the server, I'll run into Error 2013: Lost connection to MySQL server during query. This even happens when running the exact same query, back to back about a minute apart, as shown here (even when the original query is quick; only 0.03 seconds to run):
The same problem persists when I run select sleep(60) immediately upon connecting to the MySQL Server; the connection is usually lost between 30-40 seconds into the execution of the query:
I've checked the MySQL docs, but with no luck. I don't think the problem can be related to packet size, as others have suggested (since the same query will work and then fail later), and my Workbench timeout settings look okay:
Anyone have any idea? The only other thing I can think of is maybe the wait_timeout variable listed in the MySQL docs needs to be increased too, but I guess that would be somewhere on the server side (some have mention my.ini) and I can't find where any MySQL Server files live in the cPanel hosting admin interface. There's a MySQL online client provided through cPanel (phpMyAdmin I think), but it's not nearly as robust and is becoming cumbersome to use. Any help would be appreciated!
I was having the same problem, using MySQL Workbench 6.3.6 on Win10 to connect to a MySQL server on a shared hosting system (Arvixe).
In addition to to the problem described by the OP (lost connection to server), I was also getting an error when attempting to import data from a prior export (similar to what is described here):
Unhandled exception: Error querying security information: Error executing 'SELECT * FROM mysql.user WHERE user = '[username]' and Host = '[host]' ORDER BY User, Host' SELECT command denied to user '[username]'#'[host]' for table 'user' SQL Error: 1142
Apparently, a bug was introduced in MySQL Workbench 6.3.5 (bug report). From the bug report:
It appears the problem arise if connecting with an user with no privileges on the mysql schema.
In other words: users connecting to a shared hosting system.
The proposed solution is to uninstall MySQL Workbench 6.3.6, and install 6.3.4 instead. (6.3.4 can be found in the archives). This solution worked for me.
I am using Windows7 and Microsoft office 2010 and mysql5. I want to connect Microsoft excel with my database mysql. I have installed all the drivers. I have created a data source as well. I am going step-by-step to connect, but at the end when i click on test connections, I receive this error message
Test connection failed because of error in intializing provider unspecified error.
You probably are not using the right ODBC driver.
Please check if you downloaded the one that matches your MySQL database. (not only version number, but especially if it is a 32-bit server or a 64-bit server).