Questions tagged [innodb]

InnoDB is the main ACID-compliant Storage Engine used in MySQL.

Filter by
Sorted by
Tagged with
0 votes
0 answers
51 views

Unable to Recover MySQL Database [Missing FILE_CHECKPOINT]

Using MariaDB 10.7.3 via Homebrew on MacOS Monterey 12.6.1 While trying to recover the database after a system crash, I am stuck with the following situation. [Note] mysqld (server 10.7.3-MariaDB) ...
  • 11
1 vote
1 answer
82 views

MySQL Corrupted After System Crash

I'm using MacOS Monterey 12.6.1 with Homebrew 3.6.6 and MariaDB 10.8.3 The OS crashed out of nowhere and rebooted itself. After the reboot I was unable to connect to the database: Can't connect to ...
  • 11
0 votes
1 answer
131 views

MySQL + php due to high CPU usage app crashing

Just recently the application that I maintain started crashing, mysql's CPU usage is 100%... or more :) The application itself is quite old and has a lot of slow queries but before blaming it I want ...
  • 133
0 votes
1 answer
286 views

ERROR 1034 (HY000): Incorrect key file for table 'mytable'; try to repair it

After upgrading mysql from 5.5 to 5.7, a compressed innodb database seems corrupted. I followed the method in this post to create a new database/table, drop the tablespace, copy the old .ibd file, ...
  • 63
0 votes
1 answer
199 views

mysql crashes when accessing database after upgrade from 5.5 to 5.7

After upgrading mysql from 5.5 to 5.7, one of innodb databases seems corrupted. mysqldump -u root -p mydatabase > mydatabase.sql Enter password: mysqldump: Error: 'Lost connection to MySQL server ...
  • 63
1 vote
1 answer
104 views

MySQL keyring component (not plugin) not loading on server startup

Problem: There is no indication mysqld is actually reading the server manifest and/or the keyring component configuration file. Any help would be greatly appreciated. System Info: Ubuntu 20.04 ...
1 vote
1 answer
470 views

How to reduce MySQL/InnoDB disk writes

I'm stress testing an application that uses MySQL. The bottleneck is the MySQL disks (separate for main data and redo log), which are written to quite much. atop indicates their usage is near 100%. If ...
0 votes
1 answer
379 views

How to remove orphaned foreign key constraint in MySQL?

Using MySQL 5.5. I have a table for which I can't add a foreign key: ALTER TABLE `SOURCE_TABLE` ADD CONSTRAINT `ConstraintFK` FOREIGN KEY (`otherTableID`) REFERENCES `OTHER_TABLE` ...
0 votes
0 answers
25 views

Loadbalance mysql-proxy

I am looking for a solution setting up a MySQL Server in a redundant way. As for now, I have played around with MySQL, creating a InnoDB Cluster with 3 nodes, 1 primary and 2 secondary ones which give ...
  • 101
0 votes
1 answer
345 views

MariaDB High CPU load after Crash

I have a problem with MariaDB 10.3.16. I was trying to convert a rather large table (26GB) from MyISAM to InnoDB and unfortunately the disk space ran out during this process. When it got full, it ...
  • 150
0 votes
0 answers
190 views

mysql service crash (ubuntu server)

mysql service craches and the server becomes down everyday or every two days and I do not know the reason (I am using apache and innodb). mysql error log: 2022-03-12 11:11:22 140142364764096 [Note] ...
0 votes
1 answer
1k views

Failed to Import MySql database from phpMyAdmin as well as Command line

Well, I have tried to import small size database, it works. However, when I am about import a large database it shows the following error from phpMyadmin. Static analysis: 1 errors were found during ...
0 votes
1 answer
1k views

Completely Disable InnoDB in MariaDB 10.6

Not really sure whether to ask this here or at dba.stackexchange.com but I figured here might be more appropriate since it's a server config issue. I have a brand new MariaDB 10.6.5 install on Ubuntu ...
0 votes
1 answer
403 views

OPTIMIZE TABLE innodb file per table while system is running

I had an 800 GB Moodle mdl_logstore_standard_log.ibd database file. I deleted around 900 million rows in 10-15 days. The .idb file was around 800GB and still the same size after deletion. I want to ...
0 votes
1 answer
290 views

Monitoring Byte Usage of Large MySQL InnoDB Buffer Pools?

I am trying to monitor the total number of used bytes in a MySQL 5.7 InnoDB Buffer Pool, that can go up to 100GB, using Innodb_buffer_pool_bytes_data but it seems that this status variable is a 32-bit ...
  • 1
1 vote
0 answers
419 views

Alternate method for caching mysql query (query_cache) on version above 8.0

On mysql version 8+ the query_cache support was removed. I know why it is not a friendly thing with InnoDB when considering the CPU. But I've some databases which really need this support where user ...
  • 33
1 vote
1 answer
556 views

MySQL - Select queries 10x slower on Azure VM vs on-prem VM

We have been working on a project to migrate a MySQL database from an on-premise Linux server to a Windows VM on Azure (IaaS). (There's a specific reason because of which we have gone with the IaaS ...
0 votes
0 answers
329 views

Maria.db Service Doest Not Start in Ubuntu. InnoDB: The innodb_system data file 'ibdata1' must be writable

When I try to restart mariadb.service I get this error messages: ● mariadb.service - MariaDB 10.4.12 database server Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: ...
1 vote
1 answer
2k views

Optimizing MariaDB Performance

I need a different set of eyes checking my MariaDB settings. During peak load times, the CPU can hit upwards of 600% or more, and slows down Wordpress application. I have used MySQLTuner to tweak a ...
1 vote
0 answers
127 views

MySQL hangs on SELECT from table with blob fields

I managed to create a mysql InnoDB cluster with three nodes and a router everything works great but when i try to run a select query from the table below from a another server it freezes, but it works ...
-1 votes
1 answer
317 views

What is the best mysql configuration for mysql instance with a lot of databases and lot of tables inside?

I have a mysql database instance with more than 3000 database inside. Each database contains more than 200 tables. I have more than 100 gb of data in all these database at present. I am using windows ...
  • 99
2 votes
1 answer
666 views

MariaDB table has a metadata lock, but no blocking thread

I have a MariaDB 15.1 installed on a Debian system: $ mariadb --version mariadb Ver 15.1 Distrib 10.4.14-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 A script regularly loads data into ...
  • 55
1 vote
2 answers
770 views

Unclear why crash consistent backups are unsafe for MySQL

My understanding of the InnoDB engine is that the database is always recoverable after a crash, due to the internal architecture of the engine itself. That is, InnoDB can correctly recover from a ...
  • 11
1 vote
0 answers
1k views

mysql 8 only creating single log file instead of 2 (ib_logfile0)

I am having an issue with one of my mysql servers that has to do with the innodb logfiles. Even though it is configured to have 2 logfiles as normal, when I start up the server it only creates one of ...
1 vote
2 answers
1k views

Will InnoDB or NDB cluster boost performance

We have fairly large MySQL database (about 35GB total) and topping about 900qps. Performance is not a big issue for now, but the project is growing constantly and I'd rather start thinking about ...
0 votes
2 answers
576 views

need help in understanding the deadlock

I got the deadlock below when running insert into statements. What's the possible cause of this and how you suggest to solve it? LATEST DETECTED DEADLOCK ------------------------ 2020-01-01 06:56:20 ...
  • 133
0 votes
0 answers
188 views

why innodb use gen_clust_index instead of table lock when table have no any index?

My mysql version is 5.7. I try to test some case about innodb lock.I know: a. query using table lock when table have no any index. b. table have no any index, innodb will auto create gen_clust_index. ...
0 votes
1 answer
2k views

InnoDB recovery from datafiles

First of all, my MySQL DB and Linux skills are not so good. I spent several days searching for a solution and tried several approaches. The following approach is the one I came furthest with. My SD ...
1 vote
0 answers
105 views

What is the alternative for innodb_track_changed_pages in Debian 10/MariaDB 10.3

So we have been using Debian 9 with MariaDB 10.1. For faster backups (total DB size across three DBs is > 1TB) we have enabled innodb_track_changed_pages. However, that feature has gone away on ...
1 vote
0 answers
177 views

Εxponentially growing Innodb_row_lock_time on "master" node of MariaDB 10.3 Galera cluster

I've been trying to investigate issues with an application failing, and I have reason to believe that the culprit lies somewhere in the database backend. To this end, I started collecting metrics from ...
  • 11
0 votes
0 answers
618 views

ERROR: InnoDB: Attempted to open a previously opened tablespace - how to avoid that?

I had no problems before, it was all fine, even when watchdog worked and restarted the device, everything worked fine. Until after one of such reboots something happened with partitioning, fixed that ...
0 votes
1 answer
1k views

What could be causing the Google Cloud SQL MySQL replica instances to be stuck on a "System lock" state, causing huge replication delays?

Let me explain the problem in detail, We have a Google cloud SQL setup(1 master, 1 failover replica and a read replica). From the last two days, we are facing replication delays on both the replica ...
0 votes
1 answer
956 views

MariaDB 10.3 InnoDB random crash due to memory exhaust on VPS

after migrating to new VPS my server occassionally experiences database crashes. This may happen 1-2x in 2-3 days. Server runs MariaDB 10.3 on CentOS 7 with nginx 1.16. Virtual server has 1 GB memory,...
  • 145
0 votes
2 answers
277 views

Fastest way to move Innodb database from one server to another

I understand I can use mysqldump or xtrabackup to move InnoDB from one db to another. Considering I am okay with server down time, are there better way to move InnoDB database? I have tried copying ...
  • 5,471
3 votes
4 answers
1k views

MySQL on VM, High IO Wait but low TPS

We are trying to figure out a strange situation on our MySQL installation on VM. We are on Mysql 5.7 and RHEL 7 with XFS. We are observing when we run a few select queries the IOWait races up to 40-...
0 votes
1 answer
2k views

AWS Freeable memory decreases from 16GB to 1GB

I have a MYSQL database hosted on RDS with 16GB RAM. I'm using an r4.large with 20GB General purpose SSD storage. We are using a microservice architecture and has 6 backend containers. So the request ...
3 votes
1 answer
6k views

Multiple files found for the same tablespace ID

After a management over-sight, the hard disk utilization of the mysql server went to 100%. In panic, I shut down most of the services - including mysqld, which I guess caused this problem. ...
1 vote
0 answers
28 views

mariaDB uses the wrong disk

I am using mariaDB version 10.2 - innodb, with a boot and ssd drive. the boot drive is only for root, all the data is configured to be on the ssd and mysql dir is mounted on to is. when writing I see ...
  • 11
1 vote
0 answers
178 views

MariaDB 10.2 crash on innodb table corruption

I'm running MariaDB 10.2 on Windows and had some hard drive corruption on my server that messed up some innodb tables. Unfortunately this also affected backups, so I'm trying to dump the tables and ...
  • 123
2 votes
1 answer
500 views

What is the maximum number of words allowed in a MariaDB InnoDB Full Text Search query

I recieved this error when performing a search with 746 words (it wasn't intentional someone pasted text into the wrong box). HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE: Too many words in a FTS phrase or ...
  • 764
2 votes
1 answer
7k views

Mysql high cpu usage (over 600%)

The server has 8core CPU and 22 GB of ram. Every day receives many requests from users, and recently a replication mechanism has been activated, with an implementation of a db master and a slave. Now ...
  • 21
2 votes
1 answer
4k views

MySQL server (mariadb) auto shutdown without overload

With old configs, my VPS (1 CPU, 1 GB RAM, 1 GB swap) works normally for almost 2 years. I didn't change anything from beginning. But I have this issue several days ago, MySQL server automatically ...
1 vote
1 answer
2k views

MariaDB - import raw InnoDB frm/ibd files?

Good afternoon. My Debian 9 server ran into an issue that rendered the OS inaccessible , I managed to extract all the raw database files (/var/lib/mysql) for my project but unfortunately the engine ...
  • 75
0 votes
0 answers
159 views

InnoDB recovery from ibdata1 from disk failure

I started recovering data for a non-profit organization from a server that had a hard drive failure. The mysqldump was not working, but I managed to tar the /var/lib/mysql on time and download via ...
1 vote
0 answers
2k views

MySQL's innodb_buffer_pool_size doesn't seem to have any effect on RAM usage

(I have checked similar questions, none of them cover my situation) I'm trying to increase MySQL 5.7 memory usage on my Ubuntu 16.04. Before my changes mysqld was using about 8% of RAM out of 8GB ...
  • 111
0 votes
1 answer
517 views

MySQL perf bad on SSD-based server. Small tables. MySQL config? RAID?

I have a couple of servers in an industrial setting (air-gapped network) that do some fairly light telemetry gathering. We generate about 10GB of telemetry history in ~30 days. All telemetry goes ...
  • 31
0 votes
0 answers
397 views

mySQL shutdown "ERROR: 1050 Table 'plugin' already exists"

Have a mySQL DB (running on a Debian LAMP) that seems to do a maintenance shutdown or check each night, and fails with the following. The only "plugin" table is the empty one in the mysql db, and I'm ...
  • 11
0 votes
0 answers
144 views

MySQL causing major I/O Lag

I have a mysql server (version 5.1) running Roundcube Webmail client on a plesk box (onyx). We have a few hundred users on it during the day. My hypervisor, Virtuozzo, they have been working with us ...
1 vote
2 answers
494 views

What would cause mysqlcheck to incorrectly report a table as undamaged?

We are administering a MySQL server for one of our customers that has >100 databases with about 50 tables each, many of them InnoDB tables. The server crashed and I'm trying to find the culprit. When ...
0 votes
1 answer
378 views

Why are partitioned MySQL InnoDB tables twice as big as unpartitioned ones?

I have two InnoDB tables identical in every respect except for one being partitioned, and the other - not: DROP TABLE IF EXISTS `simple_table`; CREATE TABLE `simple_table` ( `date` date NOT NULL, ...
  • 173

1
2 3 4 5
8