As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [mariadb-10.2]

MariaDB 10.2 was released as stable (GA) with version 10.2.6 on 23 May 2017. Please also tag with mariadb for search purposes.

Filter by
Sorted by
Tagged with
13 votes
4 answers
3k views

In the same query INSERT, can two VALUES being NOW() return a different time?

I met a query similar to INSERT INTO mytable (id, Created, Updated) VALUES (null, NOW(), NOW()) having column definitions | Created | datetime | | Updated | datetime | Will in this case MySQL ...
Déjà vu's user avatar
  • 461
6 votes
1 answer
2k views

Allow only unique combination of values for a composite primary key

I created the following table called books: CREATE TABLE IF NOT EXISTS `books` ( `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, `name` TEXT NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=...
Michael Samuel's user avatar
5 votes
2 answers
2k views

Why am I connecting securely to MySQL when I don't have client certificates?

I don't understand the MySQL documentation for encrypted connections. The server is configured with certificates, and unless I am misreading it, the documentation says that the client must have ...
simpleuser's user avatar
4 votes
3 answers
13k views

The table is full - MariaDB

I am getting the following error whist trying to execute a long running query. The table 'C:\Windows\SERVIC~2\NETWOR~1\AppData\Local\Temp#sql1664_349_19be' is full The C drive (NTFS) on the server ...
SkelDave's user avatar
  • 143
3 votes
2 answers
737 views

Dropping a CHECK in mariadb?

I have a schema migration plan to add json column to mariadb 10.2. But I am required to have a reverse plan. Here's the forward plan: ALTER TABLE `mydb`.`table1` ADD COLUMN jsonf JSON DEFAULT NULL; ...
mhd's user avatar
  • 131
3 votes
1 answer
6k views

How to clear the InnoDB redo log before starting mysqld for crash recovery

System: Windows Server 2012 R2, MariaDB 10.2.8 We are currently trying to recover from a quasi-crash (it was a normal shutdown, but mysqld won't start up again) and are having problems with the redo ...
Etienne Ott's user avatar
2 votes
2 answers
4k views

json functions: double quotes added when going through a variable

Im stuck with what it seems simple question, when I create a JSON using the MariaDB/MySQL json functions going through variables, it adds double quotes which is annoying. However, if I don't go ...
Tarcaird's user avatar
2 votes
1 answer
954 views

Partitioning increases CPU usage in mariadb

I'm using mariadb 10.2, and I had a table with a structure similar to the one below, currently with 15gb, where I insert a few thousand records per minute all the time, each batch for a specific ...
Natan's user avatar
  • 167
2 votes
2 answers
4k views

Mysql: set variable in mysqldump

I recently added a global variable in mmy.cnf max_statement_time=120 ; to stop long running queries and to throw an exception. Its working fine. Then I am unable to run mysqldump for backing up all my ...
SAGAR Nair's user avatar
2 votes
1 answer
733 views

GSSAPI on MariaDB

I'm using Maria 10.2.13 on Windows Server 2012 and I want to use GSSAPI authentication with it so that we can continue using windows auth. I have followed this tutorial: https://mariadb.com/kb/en/...
Budyn's user avatar
  • 131
2 votes
1 answer
386 views

Finding temporary table name in MariaDB

As I reported some days ago to MariaDB bug tracker the following bug: https://jira.mariadb.org/browse/MDEV-17420, slave replicas with version 10.2.x are leaking temporary tables on MyISAM files. Our ...
Gabriel Gomiz's user avatar
2 votes
0 answers
21 views

Enforce existence of cartesian product in join table without triggers in MariaDB 10.2

Given tables A, B and C, where C holds a foreign key to both A and B (i.e. C is a "join table"), is it possible to define a constraint so that C contains the whole Cartesian product A x B without ...
Tobias Bengtsson's user avatar
2 votes
2 answers
668 views

Configure MariaDB client with host-specific credentials?

How can I configure my MariaDB client (mysql) so that I don't have to enter a password to connect, regardless of which host I am connecting to? I can't just put a password in the [client] section of ~...
Jared Beck's user avatar
1 vote
1 answer
2k views

MariaDB 10.2: Why does Count(*) work, but not Count(t.*)

I have a table containing transaction details which I am importing from several vendor-provided daily reports.. I want to be sure that I am not skipping any of the files (one file per day) as I do ...
chrismeu's user avatar
  • 113
1 vote
1 answer
1k views

What are some practical use cases for memory tables?

Trying to learn mysql and having tons of other material to learn, I'm considering skipping memory tables, since they have many special characteristics to consider especially that they vanish, after ...
user10089632's user avatar
1 vote
2 answers
634 views

Missing an inserted row

I am having a strange heisenbug when a set of queries in a transaction (in MariaDB 10.2.38) somehow results in missing rows afterward. I mean that there are rows inserted within the transaction, but ...
Simbiat's user avatar
  • 131
1 vote
1 answer
789 views

Does a MySQL dump that contains triggers double data on import?

I have a quick and simple question to clarify. I have medium sized database (400 Gigs) running in MariaDB 10.2 with lots of tables and lots of triggers as well. I am planning to take a mysqldump and ...
SAGAR Nair's user avatar
1 vote
1 answer
3k views

mysql : ordering a table in the order of the primary key

I have a table with a primary key consisting of two integer columns. I store ~200 millions lines in this table. My program needs to get the full table ordered by the columns of the primary key in the ...
Arnaud Mégret's user avatar
1 vote
1 answer
2k views

mariadb galera bootstrapping fails

Starting point at the sandbox sb1, sb2, sb3: All boxes identical. A Fresh debian 9 install mariadb 10.2 Galera3 build a test galera cluster with empty databases works fine. All three nodes come up and ...
jgnoss's user avatar
  • 93
1 vote
1 answer
131 views

Inconsistent results between MySQL and MariaDB when using variables and order

I'm building an accounting table and I need to show the current balance on each transaction. Everything is working fine in my local environment (Windows 10 + MySQL 5.7.19), but the same query gives me ...
azeós's user avatar
  • 113
1 vote
1 answer
105 views

Join against two tables to get single combined result set

tl;dr I made a SQLFiddle here http://sqlfiddle.com/#!9/031e71/1 with a minimal, complete, reproducible test case (though very specific to the problem domain of orders and products). I have a Zen Cart ...
Neek's user avatar
  • 113
1 vote
1 answer
2k views

table_open_cache increase issue - MariaDB 10.2

I'm trying to increase to 9000 but MariaDB sets it at 4895 automatically. Here is my simple config https://pastebin.com/raw/4eFiuFSv MySQLTuner output: Control warning line(s) into /var/lib/mysql/...
user3446664's user avatar
1 vote
1 answer
509 views

Can sst_state_transfer be set to rsync with innodb as storage engine in Galera cluster?

Galera cluster wsrep-sst-method docs states: You can only use rsync when anode is starting. You cannot use it with a running InnoDB storage engine. I do have InnoDB storage engine configured in ...
rok's user avatar
  • 173
1 vote
0 answers
162 views

How can I prevent overload of Mariadb server?

I'm running MariaDB 10.2.27 on Ubuntu 16.04 (10 cores, 40 GB RAM). We have a queued message handling system (using Symfony Messenger) that normally has 20 workers consuming messages from the queue. ...
lfjeff's user avatar
  • 101
1 vote
1 answer
620 views

Mysql service stops with [ERROR] InnoDB: CORRUPT LOG RECORD FOUND

In my Plesk Obsidian version 18.0.42 running on CentOS Linux release 7.9.2009 with MySQL version 10.2.43-MariaDB. All of a sudden database stopped working. Mysql service never comes up on start ...
nisamudeen97's user avatar
1 vote
0 answers
185 views

mariaDB 10.2: sql mode has changed

The Upgrading from MariaDB 10.1 to MariaDB 10.2 states: SQL_MODE has been changed; in particular, NOT NULL fields with no default will no longer fall back to a dummy value for inserts which do not ...
nulll's user avatar
  • 151
1 vote
0 answers
48 views

JOIN bug in MariaDB 10.2 [closed]

This is less a question than just a "beware." Thankfully MariaDB 10.2 is an old version, but it does some funky things when joining to nested derived tables. I updated my database from ...
John Alexander's user avatar
1 vote
1 answer
241 views

Connection aborts is happening in MariaDB 10.2 but not in 10.1 even with log_warnings level set to 2

I am noticing different behavior in mariadb 10.1 & 10.2 reg.connection aborts. I noticed connection getting aborted after 7 minutes(wait_timeout) of any query execution. There are few random ...
ragul rangarajan's user avatar
1 vote
0 answers
417 views

Why is PDO::ATTR_EMULATE_PREPARES = false causing "MySQL server has gone away" errors?

I've been using PHP PDO with the default setting of ATTR_EMULATE_PREPARES = true and it was working fine. However, I wanted to be able to select database values as integers instead of having them ...
lfjeff's user avatar
  • 101
1 vote
1 answer
113 views

SLAVE off when loading data into the MASTER from another database

I have an active MASTER/SLAVE replication (Mariadb 10.2) with a single database (see scenario 1) I decided to add in IMPORT database to populate the MASTER database as described in scenario 2. ...
Yassine LD's user avatar
1 vote
1 answer
612 views

Prepared statement too slow

have an issue with MariaDB 10.2.12 running in aws rds (single master, no slave) when I run prepared statement using a variable substitution PREPARE stmt1 FROM "select ...quite complex select from ...
Dmytro Kh.'s user avatar
1 vote
0 answers
1k views

MariaDB 10.3 slave fails to replicate from a MariaDB 10.2 master

We have a 10.2.18 master and 4 slaves with 10.2.18. Because of this bug that I've reported last week (https://jira.mariadb.org/browse/MDEV-17420) we tried to upgrade one of the replicas to 10.3.10 to ...
Gabriel Gomiz's user avatar
1 vote
0 answers
49 views

MySQL InnoDB stop locking when large sql is executed

We face a issue that the InnoDB table is locked, when a sql file that is executed is large than a certain file size. The problem does not appear when the file size is much lower, for example 25MB. ...
JGeer's user avatar
  • 111
1 vote
1 answer
295 views

Setup replication between two Galera nodes

I've been using MariaDB 10.2 Galera with 3 nodes successfully on local servers. Now, I have a second 3-nodes Galera cluster on another location, joined by an Site-to-Site IPSec Tunnel. I can't really ...
Hakujou's user avatar
  • 11
1 vote
1 answer
319 views

MariaDB optimisation [closed]

I stuck a bit with setting the best performance of MariaDB on my VPS. I have: 6 cores; 16GB RAM; 300GB SSD; CloudLinux; LiteSpeed >> MySQLTuner 1.7.0 - Major Hayden <major@mhtx.net> &...
Tom R's user avatar
  • 11
1 vote
0 answers
366 views

Unable to install Mariadb on Fedora 27 due to SELinux issue

I followed these instructions in installing mariadb on my fedora 27 VM. My mariadb.repo is configured as follows: [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.2.12/fedora26-amd64 ...
Dark Star1's user avatar
0 votes
2 answers
1k views

Alternative to ORDER BY GROUP BY to get first matches per ForeignKey

Since there is so much talk and articles about this online. I simply don't seem to have enough SQL knowledge to solve this seemingly simple problem. I have a table with layered data for a Price per ...
User2910293's user avatar
0 votes
2 answers
212 views

Which way should be selected when move from mysql to mariadb? [closed]

Now, the mysql version is 5.1.I plan to move to mariadb 10.2.Use mysqldump and source to update databases. Based on MySQL Upgrade Strategies, Upgrading to the latest release is recommended before ...
kittygirl's user avatar
  • 143
0 votes
1 answer
190 views

Unable to translate Unicode character \\uDCC9 at index 5 to specified code page

I'm using MariaDB (and Adminer) MySQL version: 5.5.5-10.10.2-MariaDB-1:10.10.2+maria~ubu2204 through PHP extension MySQLi And this is the show create table Pages: CREATE TABLE `Pages` ( `Id` ...
Saeed Neamati's user avatar
0 votes
4 answers
1k views

Practical way of finding last update/insert/delete of any table in a database?

OS: W10. This question is specifically about what's possible in MariaDB, specially version "Ver 10.16 Distrib 10.2.11-MariaDB". Edit In light of the answer by Rick James I have now upgraded ...
mike rodent's user avatar
0 votes
2 answers
385 views

How to find unused columns in MariaDB tables

I have a lot of tables in my DB that have a number of columns which might not be getting used as they slowly lost their relevance with time, I need to find such columns and delete those from the ...
DB guy's user avatar
  • 69
0 votes
1 answer
2k views

How to use FIRST_VALUE window function in MySQL/MariaDB to get one row per group?

I'm pleased to see window functions landed in MariaDB 10.2. I thought they would be good for first-of-group problems, but I'm struggling to see how they're efficient. I have something like this: ...
artfulrobot's user avatar
0 votes
1 answer
302 views

Can XtraDB be enabled on MariaDB 10.2

Can we create a table in MariaDB 10.2 with XtraDB engine? I have installed MariaDB 10.2 and I am trying to create a table with storage engine XtraDB and I am getting error *mysql> CREATE TABLE T1(ID ...
thisissanjeeva.com's user avatar
0 votes
1 answer
436 views

Bypass truncated data type error in `CREATE TABLE AS`

I am attempting to recreate the code from this excellent tutorial in MariaDB 10.2 to try and build nested sets from an existing adjacency list. (The goal being to ingest changes to the adjacency list ...
Noah Goodrich's user avatar
0 votes
1 answer
3k views

Next step to configuring MariaDB after successful installation

In addition to the formal documentation (i.e. https://mariadb.com/resources/blog/installing-mariadb-10-centos-7-rhel-7, etc), there are countless tutorials on installing MariaDB, however, not one of ...
user1032531's user avatar
0 votes
1 answer
713 views

Galera Failures

I have 2 nodes. One a VPS on NFO Servers and another on Azure. I have setup the firewalls/disabled the firewalls. The nodes are CentOS 7, Latest Kernel. The configs are as follows: Node 1 (Master DB) ...
Cody Ardoin's user avatar
0 votes
1 answer
57 views

Unable to DROP or MODIFY a column because row size is too large

I've tried to ALTER the table to DROP the unused columns or to change the data type of some VARCHAR columns to TEXT, but I always get this error: ERROR 1118 (42000) at line 1: Row size too large (>...
lfjeff's user avatar
  • 101
0 votes
1 answer
192 views

Can large data deletion affect Innodb buffer pool performance? [duplicate]

At the beginning of this year we lunched a lot of massive data deletions (millions of rows per week) in our production database. Also, there is an automatic integration of new data (insert/updates) of ...
Yassine LD's user avatar
0 votes
1 answer
22 views

Why is it not possible to "SELECT" Data as parameters for certain clauses like LIMIT?

EXAMPLE: CREATE TABLE t (A INT); INSERT INTO t VALUES(1),(2),(3),(4),(5); This works: SELECT A FROM t WHERE A=(SELECT 1) This does not: SELECT A FROM t LIMIT (SELECT 1); This works: SELECT A ...
ashycharlize's user avatar
0 votes
1 answer
119 views

MySQL Fast Database Data Validation Master/Slave

I'm moving a MySQL database from the US to Australia and have a requirement where downtime is kept to an absolute minimum. The database is 400GB is size, replication is working without any issues. ...
TheOneWhoDoesItAll's user avatar