14,554
questions
0
votes
0
answers
15
views
PayPal IPN delays database INSERT [closed]
My IPN Listener gets a response from PayPal and should INSERT the transaction details into my database.
However it takes about 2 minutes for this to be actioned by which time my code has moved on and ...
-1
votes
0
answers
12
views
Typeorm generate new migration with strange behavior (drop existings, and add it)
I'm using nest with typeorm. I'm using mariadb database
I have an entity
@Entity()
export class Store {
@PrimaryGeneratedColumn()
id: number
@Column()
name: string
@Column({ ...
0
votes
0
answers
34
views
MariaDB building dynamic JSON_ARRAY conditionally, prevent casting JSON_OBJECT to string and double-quoting
USE CASE: We want to create a JSON_ARRAY containing various JSON_OBJECTS. These objects are added if (and only if) certain conditions are true. If they are false, then that object should not be added ...
-1
votes
0
answers
40
views
KNX Bus - Read - Buffer - Write to SQL database. What best practice to perform deferral queue in Async way? [closed]
BackGround Info: For a Home Automation, an KNX installation (running sound and stable), setup a Group Address recorder. Logging values of heating control valve actuators positions, room temperatures, ...
-1
votes
0
answers
23
views
Docker Django mysql
Here's folder structure:
📄 Dockerfile
📄 .env
📄 requirements.txt
📁 pr/
📁 static/
📄 app.js
📄 manage.py
📁 pr/
📄 wsgi.py
📄 __init__.py
📄 urls.py
📄 settings.py
📄 ...
0
votes
1
answer
15
views
R2DBC MariaDB failover in Spring Boot 3
I want to perform a failover setup for r2dbc mariadb. We are using spring boot 3. I have read in some documents that from spring boot 3 it supports these behaviours.
I am expecting something like ...
-1
votes
0
answers
17
views
QueryDSL - Using DB operator in queryDSL
I'm trying to do a query using MariaDB's operator.
So My code looks like this:
query.where(Expressions.booleanTemplate(
"{0} REGEXP {1}",
o.name,...
0
votes
0
answers
51
views
MySQL Scheduled event next Execution time
I'm utilizing the MySQL Event Scheduler to run some SQL tasks. I have a task set to repeat and run every 14 days at 01:00, another task that runs every 31 days, and another task that runs every 50 ...
-4
votes
0
answers
23
views
Linux: Can't install MySQL? [closed]
Read; https://wiki.archlinux.org/title/MariaDB
$ sudo mysql
mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
ERROR 1045 (28000): Access denied for ...
0
votes
1
answer
17
views
MariaDB fulltext index tokenization rules / DOC_ID mapping
First question: is there a document that describes the rules how MariaDB builds the fulltext index words (for InnoDB)?
I set innodb_ft_min_token_size=1 to include also one letter words in the index. ...
0
votes
1
answer
37
views
SQLAlchemy: to_sql create empty table after inspect
I have strange behavior here. After I init inspect(cn), to_sql writes an empty table to the database.
def save_data_to_sql(df, table_name, cn):
df.to_sql(con=cn, name='test_1', if_exists='...
0
votes
1
answer
41
views
MariaDB running total on weather data (rain fall)
I am receiving rainfall data from my weather station in one minutes intervals e.g:
+---------------------+----------+
| tid | regn1min |
+---------------------+----------+
| 2024-09-09 ...
0
votes
0
answers
55
views
Database design for handling user names with multiple role-specific tables [closed]
CREATE TABLE user
(
id BIGINT AUTO_INCREMENT NOT NULL,
username VARCHAR(255) NOT NULL,
password VARCHAR(255) NOT NULL,
CONSTRAINT pk_user PRIMARY KEY (id)
);
...
-5
votes
0
answers
37
views
someone help me to this, i have problem when i install mariadb [closed]
so i just have some problem on arch linux where i just wanna to install mariadb for my web development, and i just got errors when i start the mariadb.service, so plz help me
enter image description ...
1
vote
0
answers
34
views
MariaDB and Columnstore
I get a crash on this
Select sum(Number) from testdata
Message
#1815 - Internal error: MCS-2045: At least one PrimProc closed the connection unexpectedly.
Total works.
Any suggestions?
Trying to run a ...
0
votes
0
answers
38
views
How insert data in MariaDB using docker and save changes of Database?
I am writing here because I am new in Docker world. In the past, I was using Vagrant in developing stuff. Installing OS + packages that I need was very easy. Now, Vagrant is load more resources than ...
0
votes
1
answer
31
views
Distinguish connections in MariaDB process list by custom label
I'm using JDBC to create multiple connections to a MariaDB server, and HeidiSQL to manage that database. In the "Processes" list I can see all of the connections:
But unless I happen to ...
0
votes
0
answers
25
views
Error : Object cannot be cast from DBNull to other types. in monodevelop
i'm trying to connect my gtk#2.0 app to a database. so theres a button, when the button clicked, it should fetching my database, but then an error appearing.error image. i'm using mariadb Ver 15.1 ...
0
votes
0
answers
50
views
Is it possible to install MySQL on Linux Mint 22 "Wilma"? [closed]
I am new to Linux. For the past 12-14 hours, I have been trying to install MySQL on Linux Mint 22 Cinnamon Wilma, but nothing seems to work.
I was watching a tutorial to install MySQL on Linux through ...
-1
votes
0
answers
63
views
How to return std::unique_ptr<sql::ResultSet> from a function?
I am currently learning C++ and am still learning and having a deep understanding of pointers and references.
I have successfully connected to MariaDB and executed a query. I am currently stuck on how ...
0
votes
0
answers
12
views
Should I change the "blowfish_secret" of PhpMyAdmin documentation ? and how can I do it?
I just upgraded my PhpMyAdmin to the latest version (5.2.1 currently) and for the new configuration, in order to avoid a warning after the authentication, I need to set on the file /usr/share/...
0
votes
1
answer
29
views
Configuration of existing Yocto recipes
I am currently looking for the best way to configure existing Yocto recipes for my use case. For example the MySQL server of mariadb - part of the meta-oe layer.
I “activate” PACKAGECONFIG variables ...
0
votes
0
answers
25
views
MariaDB container fails to start due to volume issue with mysql.sock after switching from MySQL in Docker Compose
I'm currently switching from MySQL to MariaDB in my Docker-based development environment. After switching, my development-db-1 container is failing to start properly due to issues with the volume. I ...
0
votes
1
answer
54
views
Mysql to MariaDB mysql_insertid - LAST_INSERT_ID issue
My host recently switched from mysql to mariadb. Most everything transitioned well except the:
$id = $sth->{mysql_insertid};
This is a perl cgi.pm script. My code is:
my $dbh = DBI->connect(&...
0
votes
0
answers
12
views
Migrating mariaDB database to new server and new mariaDB version, and with raw innoDB partitions [migrated]
I have a linux server running mariaDB-5.5; the tables are all (I think) innoDB tables and the data are stored on a raw partition; actually on two raw partitions because some years ago at the last ...
0
votes
0
answers
24
views
API Connection Timeout on Windows 10 with WSL2 and MariaDB
I'm developing on a Windows 10 machine using WSL2, where I've set up my API along with MariaDB and Redis. I also have MariaDB installed on Windows and use DBeaver, installed on Windows, to manage my ...
-1
votes
0
answers
20
views
How to delete data from MariaDB incremental backup? [closed]
I do incremental backups of MariaDB database using tool mariabackup according to steps described on their official website.
Assume I have a database company and table employees. I do incremental ...
1
vote
0
answers
33
views
cygwin perl access to mysql 8.xx database not working [duplicate]
I have an upgraded install of a WAMP server that is now running MySQL 8.039 instead of MySQL 5.xx that seems to be working as expected for WAMP access.
Now, I am trying to give my cygwin perl scripts ...
0
votes
1
answer
42
views
JSON in MariaDb: Removing element in array with specific value
Currently I'm doing first steps with JSON in MariaDB. I have a table "users" with a column "hunde". This column is of type JSON and contains an array of IDs (which are referencing ...
-1
votes
1
answer
29
views
MaxScale with replication couldn't create the monitor - mariadbmon-monitor' with module 'mariadbmon'
I've been trying to deploy the mariadb-operator, mariadb full replication and maxscale. It's all working great but I have 2 problems - which they might be related.
When I deploy the below yaml for the ...
0
votes
2
answers
84
views
Insert to mysql table with a column automatically has same value as another column
I has a mysql table with 2 int columns. The first column is auto_increment. Then, I want to insert whether a certain value or the value of the first column to the 2rd column.
For example
insert into ...
0
votes
0
answers
32
views
Laravel with Docker: Migration Fails for Second Database with SQLSTATE[HY000] [2002] Connection timed out Error
I'm working on a Laravel project where I need to connect to multiple MariaDB databases using Docker. While I can successfully connect to the first database and run migrations, I'm encountering an ...
0
votes
0
answers
26
views
AWS RDS MariaDB slow logs empty rows
I enabled the slow query logging on my AWS mariadb RDS as described here. And set up the publishing to Cloudwatch logs.
Parameter group family:
mariadb10.11
My parameters:
log_output = FILE
...
4
votes
1
answer
82
views
MariaDB, Data::UUID GUID: data too long for column binary(16)
I have a table:
CREATE TABLE `sessions` (
id BINARY(16) NOT NULL,
PRIMARY KEY(id)
) ENGINE=InnoDB;
I created a value to insert into the id field:
$sql = 'INSERT INTO sessions (id) VALUES(?)';
my $...
-1
votes
3
answers
56
views
mariadb how to split string by delimiter into result set in a stored function
I'm trying to create a split function that I can call in my stored procedures, I know there is a function SUBSTRING_INDEX, I'm trying to return either a temporary table or a JSON array and failing. ...
0
votes
1
answer
25
views
Sequential row update, skipping rows that have a value
I need to update a table with sequential numbering, but skipping numbers that are already in use.
The table has 3 (important) columns: id, name and order, where order is the display order of the ...
0
votes
1
answer
82
views
JavaScript in MariaDB function?
I've read today that MySQL can have JavaScript in a stored procedure, I've tried the following in MariaDB:
CREATE FUNCTION `eventEngine` (bitEID BIGINT) RETURNS BIGINT
LANGUAGE JAVASCRIPT AS $$
...
-4
votes
0
answers
25
views
Upgraded version of MariaDB still dumps older version [migrated]
I upgraded from MariaDB 10.x to 11.x. mariadb -V is showing the updated version.
I exported the database (which was retained during upgrade) via MySQL/MariaDB-dump and got the infamous sandbox error.
...
0
votes
0
answers
17
views
Not able to connect to db within the db container to take backup
I wanted to take a manual backup of the db but using the verbose flag I have discovered that I am not able to connect to the db running within the container,
root@5ebcf2a3efd4:~# mysqldump -uroot -...
-3
votes
1
answer
85
views
How to insert new row Mariadb perl [closed]
My host moved to MariaDB from mySQL. This is a Perl CGI.pm script. If I use use DBI; and use DBD::MariaDB;, most everything translates well to the new database. But when I try to insert a new row it ...
0
votes
2
answers
73
views
How to read more specific configurations in two dimensions which only have been overwritten partially
I am trying to read configuration entries from a database which has a base "project" and a base "machine" defined by the ID 0. The base configuration (key + value) can be ...
0
votes
1
answer
78
views
Mariadb C API client returns "Connection timeout" / "Connection reset by peer" if CA SSL is provided
I'm writing a C++ client application connecting to a MariaDB server with a MariaDB C connector. This code works:
this->mysql = mysql_init(0);
int timeout_sec = 10;
int ret = mysql_options(this->...
-1
votes
1
answer
54
views
Is the Python Mariadb connector module capable of using prepared statements?
I'm confused about this. By "prepared statement", I mean an object which is delivered by going something like
prep_stmt = cursor.prepared_statement("INSERT INTO my_table (field1, field2)...
0
votes
0
answers
27
views
NextCloud failed to find MariaDB
I am following the site (https://www.makeuseof.com/raspberry-pi-install-nextcloud-openmediavault-nas/) to setup Nextcloud on OMV. Everything looks fine until the last step that is to create admin user ...
0
votes
0
answers
21
views
how can we auto insert tables from sql file to mariadb container started by docker-compose?
I have Docker compose file as shown below: and DB_NAME is db_table
services:
devcontainer:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- ../.. :/code:cached
...
-3
votes
0
answers
28
views
pentaho, maria db connection
i got this error message when attempting to connect maria db to pentaho to test for connection;
error connecting to database [PENTAHO] : org.pentaho.di.core.exception.KettleDatabaseException:
Error ...
0
votes
2
answers
71
views
check number row is equal to 10 with same value
I would like to check number of row is equal 10 with same value.
I insert the value like that
INSERT test (value) SELECT 'AAA' AS value FROM seq_1_to_10;
and i want to check the number of value is ...
1
vote
0
answers
51
views
Logging the mariadb command and its output next to each other
Is it possible to log the mariadb command and its output next to each other, when the commands are source from a .sql file, just like bash -x:
$ printf 'echo abc\necho def\necho done!\n' | tee /tmp/...
0
votes
0
answers
23
views
Migrating MariaDB 10.4.24 from server to my local computer has different sizes and rows
So I use MariaDB as my database and I'm using HeidiSQL as my GUI. I tried to migrate the database from the server to my local computer so I can safely work my API using the database from my local ...
0
votes
0
answers
31
views
ERROR 2006 (HY000): MySQL server has gone away (Declare variables within MySQL interactive session) [duplicate]
Following on How to declare a variable in MySQL?
Say I initialize variables using SET or SELECT statement within MySQL interactive session:
SET @start = 1, @finish = 10;
or
SELECT @start := 1, @...