Questions tagged [mariadb-10.4]

The tag has no usage guidance.

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

Making backups with mariabackup from slave MariaDB. Best Way possible

I am trying to determine the best way to create backups from a MariaDB 1.4 slave, and I have the following questions: Will creating backups affect the MariaDB slave replication and performance? Is it ...
1 vote
1 answer
68 views

Mariabackup in production queries are very slow

I'm using mariabackup to create a new slave from our master server and after I ran the command my database is getting stuck or queries are processed very low. VM 64GB 32 core I'm using NFS storage for ...
1 vote
0 answers
45 views

MySQL Checksum differs but cannot find difference in table

I have two tables which are expected to be the same CHECKSUM TABLE robot, tbd_robot #Doesn't match All the column types (storage format) are the same, the engine and collation are also the same. The ...
  • 111
0 votes
0 answers
266 views

Errno: 1236 - Error: connecting slave requested to start from GTID xxx, which is not in the master's binlog'

I had to take over a project. There are mariadb servers with a master and slave. The master is running but the slave has the error: Last_IO_Errno: 1236 Last_IO_Error: Got fatal error 1236 from master ...
  • 1
5 votes
1 answer
289 views

MariaDB 10.4. No traffic yet high CPU usage

I have a problem with which i fail to win. Have new server set up with Debian 10 (64) and MariaDB 10.4. There's no traffic on this server yet. So no slow queries or queries in total however, MariaDB ...
  • 81
2 votes
1 answer
100 views

MariaDB Aborted connection events

A windows server (2022) has MariaDB 10.4 running on it. In the Event Viewer for Windows logs > Application there are two events that happen every minute: Aborted connection ### to db: 'unconnected' ...
  • 45
1 vote
1 answer
83 views

MariaDB replication lagging up to a dozen times a day for no obvious reasons

We first set up MariaDB replication using less powerful servers but considering our increased database load we had to rent more powerful servers and that's when the troubles began. Right now the ...
0 votes
0 answers
27 views

Can't edit a value in a table with triggers

So I'm trying to make a simple scheme of order-> payment-> shipping. Here is the structure of the main tables: cust_order (order_id, customer_id, catalog_id, items_ordered, order_date, ...
  • 1
0 votes
0 answers
122 views

MySQL Error Code 1175 even though I am using a primary key

First time posting here although I am fairly sure this specific situation hasn't already been addressed. The closest one I have found has been where someone was using their primary keys in a JOIN ...
  • 1
0 votes
3 answers
470 views

Extract a substring where the delimiter might appear more than once

I have a column of strings with this pattern <email> - <id>. Email is always the first string. I would like to extract only the email address but the problem here is that an email address ...
  • 149
0 votes
1 answer
42 views

Maxscale R/W split - SELECTS hitting master?

Using Maxscale 6.3.0 in Read-Write Split, with 1 master and 2 slaves( all MariaDB 10.4), MASTER not configured to accept reads, is it normal that Maxscale redirect these to master? If yes, why? ...
0 votes
1 answer
12 views

What underlying table does SHOW PROFILES get the Query column from?

I found that SHOW PROFILE gets data from the information_schema.PROFILING table. I'm trying to figure out what table SHOW PPROFILES is getting the Query column from.
  • 101
0 votes
0 answers
49 views

ERROR WSREP: Failed to create TOI event buf: 1

We encounter the following error in our Mariadb galera cluster after we update to 10.4.24- Can someone help ? 2022-04-11 13:37:47 4865 [ERROR] WSREP: Failed to create TOI event buf: 1 2022-04-11 13:...
user avatar
2 votes
1 answer
85 views

MySql suddenly started to choose different index for query, which causes it to be slow

Database is from Magento 2's site. Issue suddenly started to occur on our live site, dev site has the same database, but just with older data and same query is running completely fine there. I've also ...
  • 21
0 votes
0 answers
108 views

Galera Cluster in read-write split and query cache

I currently have 3 MariaDB 10.4 servers, configured as a Galera cluster. In front of it, a Maxscale router to split writes (1 master) and reads (2 slaves). QC is disabled in all 3 servers. My question ...
0 votes
1 answer
26 views

How do I set up one server to replicate X schemas from X different server, without resorting to mysqldump?

In other words; I'm trying to figure out how to restore multiple mariabackup dumps to one server (different databases). I assume I'm missing something obvious in the documentation, but I've been ...
  • 101
0 votes
0 answers
81 views

Log files are still created even when general_log is OFF - MySQL (MariaDB)

I have a MySQL server (10.4.21-MariaDB) installed by the XAMPP stack on ubuntu. I notice in the mysql folder (/opt/lampp/var/mysql) several files: ip-172-31-14-21.err ip-172-31-14-21.log ip-172-31-14-...
1 vote
1 answer
63 views

Can I improve this query by adding indexes or tuning mariadb config?

We're having a problem with a query that keeps executing very very slowly SELECT `e`.*, IF(at_news_from_date.value_id > 0, at_news_from_date.value, at_news_from_date_default.value) AS `...
  • 149
0 votes
1 answer
27 views

Identify duplicates data in combined columns

In a table there is Lang1 (First Language ID) and Lang2 (Second Language ID) that is repeating logically and I would like to keep one record and delete the other. I have encircled the entries in ...
0 votes
0 answers
88 views

select which algorithm a view is using

I have a view in a MariaDB 10.4.13 database that feeds into a database documentation process and gathers data on tables and views used in the database. Amongst other fields it selects which algorithm ...
1 vote
1 answer
33 views

query left join error

I have two queries that get me a correct result, but when I try to join they give me an incorrect result. I want to make something like: SELECT directoscount.parte, SUM(directoscount....
  • 13
0 votes
0 answers
198 views

MariaDb 10.4 not starting in a freebsd jail after update

ran a pkg update and mariadb seems to be broken. Cant find out what the reason might be after 2h our googling and digging. Help to figure out would be highly appreciated. Thanks in advance. The ...
0 votes
1 answer
32 views

Select data from a table to insert/update another similar table

I have two tables (in two databases): create table catalog_product_entity_text ( value_id int auto_increment comment 'Value ID' primary key, attribute_id smallint unsigned default 0 ...
  • 149
0 votes
1 answer
1k views

an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]

I am restore a MariaDB 10.4.17 Database to Amazon aurora MySQL 5.6 while creating a table it is showing me this error ERROR 1064 (42000) at line 25 in file: 'name.sql': You have an error in your SQL ...
  • 69
0 votes
1 answer
192 views

mysql.gtid_executed table is empty

I want to keep track of GTIDs and the corresponding mysqlbin log somewhere. I see this mysql.gtid_executed table, however on my mariadb DB, there are no rows in this table. Any idea how this gets ...
  • 21
0 votes
1 answer
1k views

JSON in MySQL : get data from an object within a range of keys

What I have: A mysql table, say table1 table1 contains two columns viz. id and data id is int but the twist is data is JSON type and its keys are comparable the table1 contains only one row (for the ...
2 votes
1 answer
356 views

what happens If I remove mysql-bin.index file?

Because of the file storage full, we are removing mysql bin log files. Accidentally, we removed mysql-bin.index file. What happens if I remove mysql-bin.index file? These below are my DBMS info. Thank ...
  • 35
1 vote
1 answer
1k views

How to model dependent categories (parent-child-relation)?

Idea / Goal I have two tables: Article (represents a Product) and Category. The relation is like this: An Article can be assigned to only one Category but a Category may have at least one Articles, ...
0 votes
2 answers
84 views

How should I model my database - cannot decide on multiple options

I apologize if this might be a rather beginner-level-question. For my database design, I have worked out multiple options but cannot decide on which one I should implement. I am using 10.4.17-MariaDB. ...
0 votes
1 answer
962 views

mariadb: replication master and slave have equal MySQL server ids

I'm a novice mariadb user trying to set up a master with multiple slaves using mariadb-10.4.17 on fedora33. I believe at one point I inadvertently ran the "change master" command on the ...
1 vote
0 answers
1k views

Table 'my_table' doesn't exist in engine

If I try select * from my_table I get: "Table 'my_table' doesn't exist in engine" but show tables contains this table in the list. I tried: mysqlcheck -u root -p --check --all-databases ...
  • 111
0 votes
1 answer
97 views

MariaDB (RDS) going temporarily offline (with memory drop)

We have an issue with a database of ours on RDS running MariaDB 10.4.8 on a t3-large instance type. For the past week or so, it's been sporadically inaccessible with no errors I can find. During the ...
1 vote
2 answers
601 views

Can I upgrade MariaDB replication infrastructure gradually?

I have 2 masters and 1 slave (replicating form both masters). M1- MariaDB 10.4.11 M2- MariaDB 10.4.16 S1- MariaDB 10.4.12 I want to upgrade this LIVE system to 10.5 with possibly 0 downtime. The idea ...
  • 125
0 votes
1 answer
101 views

Covering Index Not Being Used Effectively

I have a unique composite index on three fields (hash, is_customer, user_id) in a table a. And queries that go like this: select `a`.`id`, `hash`, `is_customer`, `user_id` from `a` where `hash` = ...
1 vote
0 answers
463 views

Bad write log efficiency, strange broken relationships

I recently switched galera synchronization method from rsync to mariabackup which greatly reduced CPU usage on our DB servers and also increased the innodb_log_file_size to 2G from about 600M or so. ...
1 vote
0 answers
204 views

Unable to grant privileges with admin account

I'm running MariaDB version 10.4.8 on Amazon RDS. Once the server is up and running, I need to create some databases, users and grant privileges to those users. Creating the databases and users works ...
1 vote
2 answers
114 views

Problem with complex queries after migrating from MySQL 5.1 to MariaDB 10.4

I completed a migration from MySQL 5.1 master-slave system to a MariaDB 10.4 Galera Cluster. All the databases where copied over since they were on InnoDB per-file and they are working fine. However ...
0 votes
1 answer
211 views

MariaDB Out-of-Order Parallel Replication and OPTIMIZE TABLE

I am using MariaDB 10.4 and have question about Out-of-Order parallel replication. I am optimizing databases(about 400GB of data) on Master every week. As optimizing DB on master do not have any ...
  • 3
0 votes
1 answer
591 views

Mariadb always writes tmp disk to a file

I'm trying to understand why Mariadb (v10.4.12) is writing most of the temp tables to disk. Created_tmp_disk_tables 196,8k Created_tmp_tables 367.8k There's 188G of RAM in the system with ~50% of it ...
  • 1
0 votes
1 answer
519 views

UTF8mb4 MariaDB 10.4 - Max key length is 767 bytes error

I am running MariaDB 10.4. I am trying to setup symmetricDS for database syncing. Some of the tables it creates have fields that are are VARCHAR(255). I know UTF8mb4 can only support up to VARCHAR(...
0 votes
1 answer
646 views

Why doesn't MariaDB server recognise Server Audit settings in config file?

I'm trying to implement the Server Audit plugin that is built-in with MariaDB 10.4. I've added the settings to the my.ini config file, running on Windows 10. [server] ... #Audit Settings ...
  • 11
0 votes
3 answers
58 views

Join without indexing the entire table

I have a query that pulls the 3 most recently commented posts on our forum. The issue is is that COUNT(forum_posts.id) as posts, is indexing the entire database of 600,000 posts and the query takes ...
0 votes
2 answers
48 views

slow UPDATE of rows by COUNTing from another table

I try to update a table by counting rows from another table as UPDATE t1 SET c1 = ( SELECT COUNT(*) FROM t2 WHERE t2.id=t1.id GROUP BY id ) strangely, this query stuck at Sending data state ...
  • 4,369
0 votes
1 answer
212 views

How to add/update data from slave server to master server in MariaDB?

I am experimenting on whether I can tweak the functionality of master-slave replication. I can write data in my master server which gets updated in the slave server but it cannot happen the other way. ...
2 votes
1 answer
4k views

SQL query with "INTO OUTFILE" does not work on MariaDB 10.4 but does on 10.0

I have an SQL query that executes perfectly on MariaDB 10.0.35 but fails with a syntax error on MariaDB 10.4.12. I attempted to contact them, but they told me to check forums and compare the ...
0 votes
1 answer
34 views

SQL 2 Columns of Different Types in Same Table - Working With 'Uknown' Amount

I'm very new to SQL and I've been searching for an answer for a while now, can't seem to find it. I have 1 table of CustOrders which has 3 columns. Table CustOrders Name (varchar) Number_Orders (...
1 vote
1 answer
993 views

MariaDB Optimization with Mysql Tuner

I've read so many articles regarding MariaDB optimization for low memory servers. There are a lot of guides about that but people are always sharing their own configuration. That makes it difficult to ...
2 votes
3 answers
12k views

Unable to create tables with ROW_FORMAT=COMPRESSED [closed]

I'm attempting to install Nextcloud on MariaDB 10.4.11-MariaDB-1:10.4.11+maria~bionic in a docker container (mariadb:latest sha256:2f11cf2ec18988aec8346a5cf528d69ac3f0f4fc02af79ba28f4fd47b7778d6f). ...
0 votes
0 answers
1k views

mariaDB Incorrect string value

I'm a newbie. I have stumbled upon this warning (code 1366) when trying to insert a string with an accent like é in my tables. For instance if I type this in the prompt: create database db character ...
1 vote
2 answers
5k views

10.4.10-MariaDB Column 'authentication_string' is not updatable

So I just installed mariadb in a new server as always, but it seems none of my commands I used to set root password and allow remote root logins work anymore and googling isn't helping me much. mysql ...
  • 190