Category "mariadb"

MariaDB Connector gives datetime with precision 3 instead of 6 after update to version 3.0.3

I have a spring boot application with mariaDB, after updating the connector ("org.mariadb.jdbc:mariadb-java-client") from version 2.7.5 to 3.0.3 the datetimes (

MariaDB losing data when importing CSV

I'm trying to import a CSV file into MariaDB. I've created the table with "varchar(300)" for each field, so it's not missing space. Also, when I loaded the file

MySQL Unknown column in CHECK

I have a MySQL database And I want to add a column: MariaDB [(none)]> use myDatabase; Database changed MariaDB [myDatabase]> ALTER TABLE material add new

no such file libmariadb.3.dylib error when importing MySQLdb on mac M1

I migrated my data to M1 Monterey MacOS from intel macmini. I was happy to use django and mariadb until I installed a package using homebrew. I installed homebr

MariaDB Exchange partition data

Database : Maria DB 10.6.5 Issue: Data transfer from partitioned table to Non-Partitioned table Table A - partitioned on Date (range partitioned) Table B - Not

MariaDB Exchange partition data

Database : Maria DB 10.6.5 Issue: Data transfer from partitioned table to Non-Partitioned table Table A - partitioned on Date (range partitioned) Table B - Not

What is the mysqld_safe command for Windows-based installations?

I need to run the mysqld_safe command in a MariaDB installation, but I cannot find it inside the \bin folder...

combine results of 2 rows with start on row1 and end on row2

I have this on a MariaDB version 5.5.65 datetimeconnect datetimeend queue agent event 02/05/2022 10:02:31 02/05/2022 10:02:31 "5009" "Mikey Blogs" "ADDME

kubernetes mariadb doesnt startt sql's from /docker-entrypoint-initdb.d

pod logs: 2022-01-04 10:43:13+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.7.1+maria~focal started. 2022-01-04 10:43:14+00:00 [Note] [En

MariaDB foreign key auto generated index not created for the first column of PK

i'm facing a question without answer. I can't understand why the auto generated index from the FK creation is not working when the column seems to be the first

It keeps outputing error: Not all parameters were used in the SQL statement

def getLevels(userName, levelID, levelName, levelLength, coins, starStars, amognus): try: statement = "SELECT userName, levelID, levelName, levelLength, coins

Where is C:\xampp\mysql\backup\ equivalent in MySQL on Linux?

I read this post and I wish to fix it the same way as the answers but I can't find the backup folder in my CentOS. Where is C:\xampp\mysql\backup\ located in Li

InnoDB Write Log efficiency is too high more than 100% (1953.15%)?

I have MariaDB on my server with 16/32 CPU cores, Everything seems to be ok when running mysqltuner except InnoDB Write Log efficiency, taking 1953.15%, wonderi

Crafting a Subquery-able UNION ALL based on the results of a query

Data I have a couple of tables like so: CREATE TABLE cycles ( `cycle` varchar(6) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `cycle_type` varchar(140) COLLATE

MariaDB CTE syntax for parameter list

I'm trying to replace an expensive where in ... query with a CTE. I've done this previously in other sql dialects, but can't get the syntax right for MariaDB/My

Avoid incrementing primary key if insert is not successful?

I have a 'locations' table as follows: Using an API, if I send a valid record, the table will start normally with index 1. If I send something that won't be ac

StackOverflowError when connection to aurora using mariadb java client

When connecting to an aurora db using the mariadb java client (version 2.7.5) i am getting this error (I only put the first few lines because the entire stack i

MySQL pagination with limit returns the same values

I'm trying to do pagination, but the SQL query returns the same values on different pages. I show them the queries and the results, and it shows that there are

MariaDB converting datetime string to date

Trying CONVERT() Trying STR_TO_DATE() Trying CAST() - neither DATE or DATETIME work Trying CAST(STR_TO_DATE()) Hi, I cannot figure out what I'm doing wrong with

Order of CAST() and COALESCE() matters in MariaDB

I have a strange problem: There is a price in a JSON column in a table and the following statements give different results while they should give the same thing