Questions tagged [mariadb]

MariaDB is an open source database server that offers drop-in replacement functionality for MySQL.

Filter by
Sorted by
Tagged with
0 votes
2 answers
15 views

Update table on Trigger

I need to set a trigger on a mariadb table that, when a record is updated, would update the DateModifica field to the current time of the record itself the SQL code should be CREATE TRIGGER ...
Roberto Rossi's user avatar
0 votes
0 answers
10 views

Methods to increase access accounts on the apache tomcat server service

The system configuration consists of a load balancer, Apache (2.4.46) web server, Tomcat (8.5.84) WAS (Web Application Server), and a MariaDB server. Even after increasing the number of WAS servers to ...
shanepark's user avatar
-2 votes
0 answers
13 views

Can't import the dump: ERROR 1180 (HY000) at line XXXXX1268: Got error 1 "Operation not permitted" during COMMIT

I am trying to recover my slave cluster. I have followed the guide instructions from here: How to re-sync the Mysql DB if Master and slave have different database incase of Mysql replication? The dump ...
Skuld's user avatar
  • 9
0 votes
0 answers
14 views

How can i move data from my mariaDB database to a cold storage? [closed]

How can i move data from my mariaDB database to a cold storage(preferebly aws s3 glacier). Since i'm doing some research other preferable tech stack suggestions are welcome I'm still in research state ...
Kushagra Vatsa's user avatar
0 votes
0 answers
21 views

PhpMyAdmin often (but not always) fails with "Error (rejected): It seems that the connection to server has been lost"

I have a fresh install of a Debian 11 server with the full LAMP set: Server: Localhost via UNIX socket (no SSL) Server type: MariaDB 10.5.19-MariaDB-0+deb11u2 Apache/2.4.56 (Debian) Database client ...
Radix257's user avatar
0 votes
1 answer
23 views

Dynamically set a column in a query depending on a variable

I tried to dynamically set a column in a query depending on a variable value but it doesn't work: SET @variable1 = 'Foo1' SELECT CASE WHEN @variable1 = 'Foo1' THEN MY_TABLE.FIELD1 WHEN @...
8oris's user avatar
  • 320
-1 votes
0 answers
14 views

Connecting to mySql maria DB Database [duplicate]

I am having an issue when connecting to a mysql, maraidb database. Below is my code: Dim server As String = "localhost" Dim prt As String = "3306" Dim user As String ...
Luqman's user avatar
  • 1
0 votes
0 answers
45 views

How to render value by column from dynamic string mysql

Below sample data table below has the SKU column - separated dynamic string. This string contains the join table alias and column names. I am trying to get the values of those columns. Please, if ...
Abzal Ali's user avatar
  • 153
0 votes
1 answer
23 views

Using parameter as column name in Redash

In Redash, is there a way to use a parameter as a column name in the query. I tried this but it doesn't work: SELECT CASE WHEN {{ Parameter }} = "Label Column 1" THEN COLUMN_1 WHEN {{...
8oris's user avatar
  • 320
0 votes
1 answer
33 views

ERROR 1045 (28000): Access denied for user on MaxScale

I set up MaxScale so I tried to test whether it work or not. I did tried to access from application server using this command below $ mysql --host=192.168.30.145 --user=client --password -P 3309 and ...
hekke's user avatar
  • 5
0 votes
2 answers
29 views

How to search entires containg multiple word prefixes in a multi-column fulltext index in MariaDB?

I have a table storing person names CREATE TABLE `person` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `first_name` varchar(100) NOT NULL, `last_name` varchar(100) NOT NULL, PRIMARY KEY (`...
Halibut's user avatar
  • 175
0 votes
1 answer
9 views

How can I run a multi line command in a buildspec.yaml for CodeBuild

I need to set up MariaDB on an AWS CodeDeploy instance with local username and password so that my Laravel App can connect to it and complete testing. This buildspec does most of what I want to ...
Rory's user avatar
  • 2,174
0 votes
0 answers
35 views

Using verbose labels in query [duplicate]

I got some issues using "textual" aliases (= human readable, with spaces for instance) in sql queries. For instance: This query works perfectly: SELECT CASE WHEN PROGRAM_TYPE Is NULL ...
8oris's user avatar
  • 320
0 votes
2 answers
63 views

Porting SQLBase by Gupta to another system

We use SQLBase for our development in various versions, including 12.2. Our main application is a Team Developer application (Version 7.5) that utilizes SQLBase as its database. In addition to Team ...
temuco's user avatar
  • 21
1 vote
1 answer
55 views

How to investigate active MySQL transactions that are not visible in processlist?

We have a Java application that works with MariaDB 10.4.28 hosted in AWS RDS. We have a situation that application went down with reason "CannotCreateTransactionException". The pool has 40 ...
snowindy's user avatar
  • 3,139
-1 votes
1 answer
62 views

MariaDB query row to column with unique filter

I am trying to convert some rows to columns in a single table and can't get it work. :( Here is my simple MariaDB table called runningtimes: So I have tried various methods including pivot or ...
OpperSnokker's user avatar
-1 votes
0 answers
29 views

an update sql in a loop fails after n times [closed]

I've been having problems with updates for a while and wanted to run a test. In particular, if the table is large (the test was performed on a table containing around a million records), it ...
Daniele's user avatar
  • 175
-1 votes
3 answers
88 views

How do you query a main table with known duplicates that also have tags?

I have a main table called pics that has an ID number and the origin site from which it was pulled from. I also have another table called tags that has a list of all the tags that were also pulled ...
Pengalor's user avatar
-2 votes
1 answer
27 views

"Access Denied user root error code 1045 (28000)" after changing root passwords [closed]

I'm encountering an "Access Denied user root error code 1045 (28000)" error with user root. I'm facing this problem after changing passwords. It was working fine before, and I'm confused ...
Mushtaq Ahmad's user avatar
0 votes
1 answer
27 views

Store/insert XML in JSON field datatype Mariadb

I am trying to store all the user data in JSON format in MariaDB. Sometimes few fields have XML data which need to be stored but while storing XML data in JSON I am getting an error. Please help me ...
dinu0101's user avatar
  • 463
0 votes
1 answer
34 views

MaxScale doesn't connect to Galera Cluster

I am working on a distributed HA cloud system and I have a Galera Cluster with 3 separated servers in Docker Swarm. It works as expected. I have 3 separated services for the Galera members due to ...
milanbalazs's user avatar
  • 4,821
-1 votes
0 answers
19 views

sqlmap finds multiple wrong dbms and can't retrieve table names

I have a simple database to get to know sqlmap, just one table with a bunch of color names + random ids, the dbms is MariaDB. For browser viewing and interaction, I use jsp with a servlet to retrieve ...
G Knucklez's user avatar
-1 votes
1 answer
25 views

installation of MariaDB is failing due to a missing library: libssl.1.0.0.dylib on mac

my mac version is 13.5.1(intel). got below error while installation of mariaDB through one of the application. An error occurred while installing the database at ch.vorburger.mariadb4j.DB.install(DB....
Avyaan's user avatar
  • 1,283
0 votes
0 answers
25 views

mysql: retrieve one distinct id for all duplicate user entries instead of all id where duplication occured [duplicate]

I want retrieve one distinct id for all duplicate user emails instead of all id where duplication occured. I have a table of users. This table has an ID and an Email. in the table the ID is unique ...
akaAlso's user avatar
  • 140
-1 votes
1 answer
62 views

Mariadb/MySQL databases keep failing

hope you can help. My Mariadb/MySQL databases keep failing with this message in the log: =============== Service Error (XID fseu38) The “mysql” service failed to start. Startup Log Starting MariaDB....
user2510689's user avatar
-1 votes
0 answers
18 views

MariaDB and Synology: SQLSTATE[HY000] [2006] MySQL server has gone away [closed]

I just want to share this: I got the error when I tried to connect with the MariaDB10: SQLSTATE[HY000] [2006] MySQL server has gone away The first problem was that port 3307 was not activated in ...
user3488359's user avatar
0 votes
0 answers
28 views

MariaDB REGEXP with escaping backslash has strange behaviour [duplicate]

I use MariaDB 10.6.8 and found this strange behaviour when using backslash and escaping backslash. SET @x := 'abc\\def'; SELECT @x; -- abc\def SELECT @x REGEXP '\d' ; -- 1 why this gives no ...
giordano's user avatar
  • 2,966
0 votes
2 answers
40 views

Slow query with 3 seconds of execution

Using FreeBSD freebsd 13.2-RELEASE-p2 FreeBSD 13.2-RELEASE-p2 GENERIC amd64 as ec2 instace(t2.xlarge) and mariadb104-server-10.4.28: mysql Ver 15.1 Distrib 10.5.20-MariaDB, for FreeBSD13.2 (amd64) ...
proggaf's user avatar
  • 29
0 votes
1 answer
18 views

WooCommerce unused images deserialize wp_postmeta Maria DB regex_instr workaround

I am trying to get a list of all the filenames from a set of posts in a WooCommerce Gallery, this list is the unused files attached to posts (I can't use Media Library unselected, because that doesn't ...
MarcusR1's user avatar
0 votes
2 answers
34 views

Does an ALTER TABLE take longer for a larger table?

If I have a table A with 1000 rows, and a structurally identical table B but this time with 1000000 rows, will an ALTER TABLE (for example to add two new columns) take longer for table B? If so will ...
Nicetechnology's user avatar
0 votes
1 answer
51 views

parallel SELECT...FOR UPDATE causing mariaDB high CPU usage

I am trying to test different ways to move 1M data from one table to another without locking the whole tables and then mark the rows as processed. I have two scripts, one using a simple insert select (...
Shaolin's user avatar
  • 417
0 votes
0 answers
17 views

Connection Not Established with server sometimes while connecting through website

I am fetching data from database (MariaDB) through website (Via Functions / Procedures) . But it sometimes fetch data from database for some requests but sometimes it throws error for same id like e.g ...
Manish Kumar's user avatar
1 vote
1 answer
34 views

MariaDB partitioning with char + date columns for PRIMARY KEY

We would like to partition an existing table of 20m rows by month but the documentation says, before starting partitioning, the table needs to have a composite PRIMARY KEY by the id (AUTO_INCREMENT) ...
mmac-rio89's user avatar
-1 votes
3 answers
44 views

Java MariaDB no suitable driver found

I'm trying to connect my Java app to MariaDB database. MariaDB is properly installed and it can be used with DBeaver without any issue. However, my Java app cannot connect to the database. Here is how ...
patrickstart974's user avatar
2 votes
4 answers
179 views

How to improve query performance on mariaDB 10.10.6

I've a simple query that is taking way to much time to process, the query is very simple and the WHERE clause has just simple comparators but the query takes between 15 to 20 secs to process in a ...
Rafael Lima's user avatar
  • 3,118
1 vote
1 answer
35 views

Locking and Skipping Locked Rows in MariaDB

In the database, there are 2 rows that match the query condition. If we run two parallel queries, the first query locks both rows and returns one, while the second query returns null. It would be ...
Максим's user avatar
0 votes
1 answer
32 views

SQL Column Regex Restriction

I want to create a column in my table that have some restriction --> CustomerID must starts with ‘CU’ and followed by 3 numbers (e.g. CU001, CU928, CU999, etc.) just fyi, I use xampp CREATE TABLE `...
Raynaldy Dwi's user avatar
0 votes
0 answers
46 views

5.5.60-MariaDB mysql, Accidental appearance Lost connection to MySQL server at reading/sending authorization packet

mysql Official documents Only containing “Lost connection to MySQL server at reading authorization packet” Solution, But it does not include “Lost connection to MySQL server at sending authorization ...
xiuyuanhuang's user avatar
0 votes
1 answer
54 views

Using stored procedure parameters in delete queries deletes all records

Alright, y'all, here's the deal. I want to create a stored procedure to delete values from certain tables. This is what it looks like: CREATE OR REPLACE PROCEDURE `delete_sap`(sap_to_delete CHAR(45)) ...
S. Dale's user avatar
  • 46
-2 votes
0 answers
11 views

Two level filter with max and count mariadb [duplicate]

I have a table like this: I want to know for each application version which rating is the most. In the above example it would be the desired outcome: application_id version rating COUNT(ratitg) 1 4 ...
Simon-Varga Csaba's user avatar
-1 votes
1 answer
61 views

Why is Mariadb behaving differently when access it via PuTTY or via R?

Rephrasing a previous question. I am trying to understand why I can get access to Mariadb via SSH over PuTTY but not over R. I'm using Windows 11 v. 22H2; server is hosted with cpanel. Opening the ...
Pomul's user avatar
  • 390
1 vote
1 answer
34 views

Jooq update table records without primary key unexpectedly inserts new records

I have a table called result that has no primary key (cannot change that). I want to update all the records that meet a certain condition using Jooq. The following code doesn't work as I expected. It ...
Battalgazi's user avatar
-1 votes
0 answers
24 views

Im getting error 1064 during creating table with foreign key in MySQL 10.4.28-MariaDB [duplicate]

im trying to create table through MySQL Workbench but it is showing this error. i searched solution on YouTube and also used bard (chat GPT) to convert this query to executable query in mysql ...
Pushpak Bhoite's user avatar
-1 votes
1 answer
38 views

How to run nestjs app using docker compose?

Trying to run my nestjs app with mariadb using docker compose here is my dockerfile FROM node:18-alpine WORKDIR /user/src/app COPY . . RUN npm ci --omit=dev RUN npm run build USER node CMD [&...
awovu netux's user avatar
0 votes
0 answers
9 views

Mount MariaDB data in a separate directory on RHEL 8? [migrated]

We are migrating from a CentOS 7 server (physical server) to RHEL 8 (Azure server). This server was setup by someone else, and admittedly I know enough to install/configure LAMP. I am not a sysadmin. ...
Joel Firestone's user avatar
-1 votes
0 answers
66 views

MariaDB subquery returns different rows when joined

I have a problem with an SQL query on MariaDB. I am using a subquery, either as JOIN (SELECT ...) or as CTE to get some grouped values and two additional rows to join those values. WITH Systems AS ( ...
Alex Bernhard's user avatar
1 vote
1 answer
45 views

Assigning SQL Query Result to a Variable

I have the following SQL query. The SQL query returns a single value so it's working. How can fix this situation? Thank you. Here, I want to assign the INTEGER value that I found using the CAST ...
Skayz's user avatar
  • 11
1 vote
1 answer
52 views

Upgrading MySQL 5.6 to MariaDB 10.5 on Ubuntu 20.04 desktop: Fatal error in defaults handling

I am trying to upgrade MySQL 5.6 to MariaDB 10.5 on my Ubuntu 20.04 desktop. I have removed the MySQL per directions (unlinking /usr/local/mysql). I have installed MariaDB per installation page. It ...
Baruch Youssin's user avatar
0 votes
1 answer
21 views

whether magento 2.4.6 support utf8mb4 [duplicate]

currently i work magento website based 2.4.6. when customer sso login from line, there are some EmoJi characters. When use utf8mb3, it show ???. We need change mariadb to be utf8mb4. when run bin/...
davis du's user avatar
0 votes
0 answers
35 views

Getting "org.hibernate.PessimisticLockException: could not execute statement"

Flow //Service Class A @Transactional mainMethod() { // some business logic methodA() .. } // Component class helperA @Transactional(propagation = Propagation.REQUIRES_NEW) methodA() { ...
vipul jadhav's user avatar

1
2 3 4 5
279