Questions tagged [mariadb-10.3]

MariaDB 10.3 was released as stable (GA) with version 10.3.7 on 25 May 2018. Please also tag with mariadb for search purposes.

Filter by
Sorted by
Tagged with
0
votes
1answer
8 views

MariaDB on Ubuntu mysteriously goes away after 15 minutes

I have an issue I've never seen before...my MariaDB goes away after 1800 seconds, despite having the default configuration for wait_timeout of 28800 seconds. I checked all my my.cnf files, and there ...
0
votes
1answer
13 views

Authentication relying on mysql_native_password seems to also check for Linux user?

I have a mariaDB 10.3 install. The mysql.table states that 'root' login relies on mysql_native_password plugin, with no password set. If my linux user is root, I am able to connect to mysql using; ...
0
votes
1answer
14 views

ALTER TABLE statements not replicating in all tested scenarios - MariaDB

Summary Tech: mariadb 10.3 Issue: some attempts to ALTER TABLE to change engine is not replicating. Scenarios tested: command line PHP script running ALTER statements using PDO - did not replicate ...
0
votes
1answer
8 views

unknown variable 'file-key-management-filename'

New installation of Debian 10, with MariaDB 10.3.29. Trying to set up encryption-at-rest, but MariaDB won't start due to an error... [ERROR] /usr/sbin/mysqld: unknown variable 'file-key-management-...
0
votes
0answers
30 views

Performant way to limit selected rows but make sure the sum of the rows is large enough

Here's a simplified version of the problem. You have a marketplace where users can publish how many items they have for sale and the price. You would like to buy 1 000 000 items, and you want to ...
0
votes
1answer
30 views

Get the next datetime value

I have a MySQL table: SELECT sh.id, sh.DG_ID, sh.START_DATE FROM STATUS_HISTORIES sh order by DG_ID, START_DATE id DG_ID START_DATE 22 212 2021-04-20 14:59:58 66 212 2021-04-21 05:...
0
votes
0answers
23 views

MariaDB mysql.user table shows as a VIEW. Hence, MySQL is not starting

We have a MySQL installation that has mysql.user table a VIEW. So, MySQL is not starting properly. We are now running it with skip grant tables. Is there any option to convert the view to BASE TABLE ...
0
votes
0answers
12 views

Database Performance issue after moving from windows to Synology

I have moved the test database server from Windows to Synology. The size of the database is 5.5 GB and the innodb_buffer_pool_size = 6G. This Synology server is a dedicated database server. After this ...
2
votes
1answer
36 views

MaridDB 10.3.29 prevents me from deleting a foreign key

This is a minimal example that triggers the error CREATE TABLE A ( id bigint NOT NULL AUTO_INCREMENT PRIMARY KEY ); CREATE TABLE B ( what tinyint NOT NULL, a bigint NOT NULL, CONSTRAINT x ...
1
vote
2answers
46 views

Get all rows where specific column value occurs more than once (filter out single occurences)

I am trying to filter all sessionIds that occur once out of an existing result set. This query is being used in a web application and runs on a big dataset (~ 35 million rows), so I want to prevent ...
0
votes
2answers
42 views

Does a NULL DATE use as much storage as a value?

I need to store a DATETIME value that may or may not have a date. My options are: | starts DATETIME | |---------------------| | 0000-00-00 12:38:06 | | starts_date DATE | starts_time TIME | |----...
0
votes
1answer
23 views

LEFT and RIGHT JOIN multiple table, show all null data on mariadb 10.3

i want to join 3 table with null value, here i have 3 table folowing tbl_reporting tbl_criteria tbl_student |===============================| |...
0
votes
2answers
53 views

LEFT JOIN subquery fails in the presence of an EXISTS clause in the main query

I have this query: SELECT c.id contact_id, engagement.sent FROM contact c LEFT JOIN ( /* ➊ Inner query */ SELECT eq.contact_id contact_id, COUNT(*) sent FROM mailing_job j INNER JOIN ...
0
votes
2answers
38 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 ...
0
votes
0answers
24 views

How to use a query to get the definition of (MariaDB 10.3.27) database objects (specifically the variables they use)

I have written a query to get most of the useful information about the routines in a MariaDB database for a database documenter that I am developing. The code below will return routine name, routine ...
0
votes
1answer
44 views

Please help tune MySQL config

Anyone can help me to check this MySQL configuration? I have a VPS 2GB RAM - 2 vcpu, installed cyberpanel from litespeed. Any help would be appreciated! my.cnf settings are: [client] port ...
2
votes
0answers
47 views

MariaDB - Query to find unused indexes

I need to find unused index on a MariaDB database and do not have 'userstat' enabled, I found this query which is supposed to find unused indexes, but I am unable to get a full understanding of this ...
0
votes
2answers
96 views

Remove unused Indexes MariaDB

I have a big database with 50 tables and each table can contain between 100,000 to 100 million records. On these tables are there are 1000s of indexes, but many of the indexes are now not in use. How ...
0
votes
1answer
41 views

MariaDB 10.3.27 Memory usage problem

Greetings! I tried to optimize MariaDB configuration with my.cnf. Everything was OK, but available memory falling down each hour. I'm using MariaDB with Zabbix server on the same server. CPU: 4 Cores, ...
1
vote
1answer
76 views

How to limit impact of a bad application on MariaDB Galera Cluster with MaxScale?

I have a Galera Replication cluster with three MariaDB nodes where a Maxscale Active-Passive cluster in front provides a single node image to tis clients. I have a bad behaving client, which opens ...
-1
votes
1answer
18 views

Can't update database table's column using trigger or from php page but works after using update sql query in phpMyAdmin

After inserting into my audit log table called userUpdateLogand it calls an before insert trigger to insert into userProfiles and users based off the columns insert into their respective table. but ...
0
votes
0answers
48 views

Should a mysql slave answer queries much slower then the master?

I am seeing a slight issue on a mysql slave server, or at least on the surface it appears there might be an issue. Both mysql's are virtual machines The master and slave are the same OS (debian10) and ...
-1
votes
1answer
37 views

MariaDB CONNECT engine to read external mongodb collections

I want to access MongoDB collections through MariaDB 10.4.17. Both are installed on my local machine running Windows 10. Software listening port MongoDB 27017 MariaDB 15501 I installed the MariaDB ...
0
votes
0answers
267 views

How to enable use of SSL in MySQL server?

I have 2 devices on my local network: a remote MySQL server (using MariaDB 10.3) and a laptop (acting as a client with Python). I need to connect to a remote MySQL server via Python using SSL ...
1
vote
0answers
143 views

Why setting up new galera cluster with mariabackup as sst starts but all other nodes failed with same error?

I did a fresh reinstallation of mariadb-server on all the nodes (I removed using sudo apt purge mariadb-*) I started the first node using sudo galera_new_cluster it went fine and is still running. but ...
0
votes
0answers
16 views

How to setup Galera Cluster when nodes are located multiple sites?

I am setting up a web app that runs on 2 sites and shares db, Initially I setup 1 Galera Cluster with all nodes in it, but sometimes SST on bringing node up takes lot of time and service start times ...
0
votes
0answers
25 views

MARIADB-10.3.14 VM OOM KILLED AND TUNING [duplicate]

DEDICATED VM FOR MARIADB - CENTOS 7.7 \\ 16VCPU/250G - JBOD DISKS/NO SSD. OS PARTITION AND DATABASE ARE ON DIFFERENT FILESYSTEM. Span of every two weeks, Kernel OOM happens. Reducing ...
1
vote
1answer
357 views

Very slow query on MariaDB 10.3 compared to MySQL 5.5.50

I already discussed how much slower performance I have experienced on MariaDB 10.3 compared to MySQL 5.5 for some queries in my previously posted thread, but I am now struggling with a specific kind ...
0
votes
0answers
20 views

InnoDB engine lock tables higher than tables used

I am running the SQL statement CREATE OR REPLACE TEMPORARY TABLE my_schema.tmpx_test AS SELECT col1 , SUBSTR(col2, 1, 5) AS col3 FROM my_schema.my_table WHERE col4 = 'my_string' AND POSITION('...
0
votes
0answers
16 views

Query execution time increased after changing server

I have changed the test database server from windows to synology. After this change, there is one query which takes 9-10 sec to get a result on synology. On the Windows server , it took 0.18sec to get ...
0
votes
1answer
19 views

Why does the query plan start with a not-filtered-for table when the filtered-for table's entries exceed a certain threshold?

We process data for our customers. Each customerrequest and is associated with one or more items (less than two on average) and falls into one of <100 categories, foreign keys to which are also ...
1
vote
0answers
31 views

How can I fix mariaDB in debian server?

I'm already too tired of trying so many different things and I can't even bypass an error which is running # mysql -u root -p when it asks for password, no matter what I type it shows Welcome to the ...
0
votes
1answer
36 views

InnoDB engine getting disabled after decreasing innodb_page_size to 4K

I'm trying to optimize my database (mariadb) for high write (insert & update). Database is running fine with default innodb_page_size (16K), but when I decrease the value of innodb_page_size=4K. ...
1
vote
0answers
15 views

why timezone like '+00:00' ignored with select but error with create table?

I am wondering, why does mariadb ignore timezone like '+00:00' with select statement however throw the error with create table statement? SELECT CAST('2020-07-09 09:55:36.933554+00:00' AS DATE) dt; # ...
0
votes
1answer
900 views

Extract all objects from json array using MariaDB 10.3

How can I extract every object from this json array using MariaDB 10.3? I think the JSON_TABLE function in MySQL does what I need, but I'm currently constrained to MariaDB. SET @json_doc='[ { ...
1
vote
1answer
198 views

Why is disk IO higher on Debian 10 (MariaDB 10.3) with MySQL replication?

I have a MySQL/MariaDB master-master replication setup that has been working well for several years, the db and tables are not very large (under 200MB for 18 tables). These were on 2 servers running ...
1
vote
1answer
2k views

ERROR 1067 (42000): Invalid default value for 'uploadedDate'

Hi everyone i am getting an error trying to run the below query ERROR 1067 (42000): Invalid default value for 'uploadedDate' CREATE TABLE `filenew` ( `id` int(11) NOT NULL AUTO_INCREMENT /* ...
2
votes
1answer
48 views

Process was intentionally killed - now the process is still showing in “show processlist ”

We had a MariaDB long-running process (40 hours), so I killed the thread. But, the thread is still there, with: showing Command as Killed. a State of Unlocking tables. Info is insert into ... What ...
0
votes
2answers
23 views

convert_unixtime output wrong date

Behind the scene: Basically I operate an app that heavily relies on time calculation. We store unixtime in the database according to the user's timezone. Now to perform specific operations we need to ...
0
votes
1answer
180 views

MariaDB/MySQL: Import from dump (.sql) file remotely via network

After I set my.ini file following the answer by Rolando here : https://dba.stackexchange.com/a/83385/191579 , today I managed to import about 40GB+ sqldump file in around 2-3 hours only. While on a ...
0
votes
2answers
41 views

Using subquery within IF condition [closed]

Hello i am having a weird problem currently i have the following query SELECT * FROM `txt_campaign_message` `cm` LEFT JOIN `txt_campaign` `c` ON c.id = cm.campaign_id LEFT JOIN `...
2
votes
1answer
74 views

MySQL / MariaDB Get last 7 days summarized and with avarages calculated

currently, I have this table: CREATE TABLE `plant_data` ( `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `plant_id` BIGINT(20) UNSIGNED NOT NULL, `temperature` DECIMAL(5,1) UNSIGNED ...
0
votes
3answers
142 views

Grant MonitorAdmin / PROCESS privilege to user

I need to assign the monitoradmin privilege to a user because this is what an application called "dynatrace" needs to monitor the server (some details in a post on their site). According to https://...
0
votes
1answer
3k views

How DISCARD the tablespace on mariadb while table is not found?

I run the mysql_upgrade against my mariadb 10.3 and get the following error - see here for details. ERROR 1813 (HY000) at line 85: Tablespace for table 'mysql.transaction_registry' exists. Please ...
3
votes
0answers
2k views

InnoDB: Error: Table “mysql”.“mysql.transaction_registry” not found after upgrade to mariadb 10.3

I've upgraded the mariadb to 10.3 packages on my Debian 10, however something went wrong and I ended in the same issue which is mentioned several times Cannot open table mysql/innodb_index_stats [...
0
votes
1answer
264 views

mariadb takes too much load though having sufficient RAM

I am facing more CPU usage for my app server. Server configuration is as below. 1> CPU: Intel(R) Xeon(R) CPU E5-2650 v4 @ 2.20GHz 8 core 2> RAM: 32 GB 3> 600 GB SSD NVRAM 4> Mariadb ...
0
votes
1answer
128 views

mysqldump generating inconsistent dumps

I cannot get mysqldump to generate a dump that will properly restore. The dump is being generated to setup a new slave, but whenever the slave starts up, it gets foreign key constraint failures. I'm ...
1
vote
1answer
38 views

SQL Query GROUP BY JOIN

I have the following tables: CREATE TABLE `Channels` ( `id` INT(11) AUTO_INCREMENT PRIMARY KEY, `title` VARCHAR(255) NOT NULL, `views` INT(11) NOT NULL DEFAULT 0, ) Engine = InnoDB; INSERT ...
0
votes
0answers
43 views

MariaDB maintain key order in COLUMN_CREATE

I am using a 10.3.11 table with the following structure MariaDB> desc MetaData; +--------------+------------------+------+-----+---------+----------------+ | Field | Type | Null ...
0
votes
1answer
471 views

Group_concat on IF Select MYSQL

I have a query as below: SELECT o.order_id, c.customer_name, Group_concat(p.product_name, ' x', p.product_quantity ORDER BY receipt_order ASC SEPARATOR '<br>')...