MariaDB is an open source RDBMS that is designed to be a "drop-in" replacement for MySQL.

learn more… | top users | synonyms

0
votes
1answer
54 views

Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_turkish_ci,IMPLICIT) for operation '=' and why?

Hello I got error in mariadb. In my command two columns have different collate. one is utf8_unicode_ci (a) other is utf8_turkish_ci (b). Why I got error when I compare these columns ( where a = b ) ...
5
votes
2answers
747 views

Datatype for phone number: VARCHAR, INT or BIGINT?

So this will be the dummy question of the year but I need to ask since is not the first time I pass through this. Take a look to the following table definition: Take a look at the column ...
0
votes
0answers
45 views

MySQL/MariaDB: Can I drop KEY declatations in sql dump for CREATE TABLE for foreign keys?

I prepare Liquibase schema creation changelog for legacy DB. I started with SQL dump and refined it by little sed processing so I have only CREATE TABLE statements. It looks like: CREATE TABLE ...
0
votes
0answers
50 views

mariadb error transaction deadlock

I use galera cluster with 4 nodes, mariadb, we insert nearly 12million data. Insert task was finished. However we have lost 11000 data. I don't know where they go. In error log it writes; 151220 ...
1
vote
1answer
120 views

Why do innodb tables get corrupted so easily?

I'm upgrading a legacy system running MySQL 5.1 all the way to MariaDB 10. We're on a brand new Windows server, running XAMPP. I've done plenty of DB migrations in my time but this one has just been ...
0
votes
2answers
89 views

Connect MariaDB and Oracle XE

I got an existing MariaDB running on a CentOS 7, I want to add a reporting layer on top of it, I therefore installed an Oracle 11g XE with APEX 5. My goal is to link those two databases in order for ...
0
votes
1answer
93 views

Package mariadb-server-5.5 is not configured yet [closed]

I am having issues trying to upgrade my mariadb..... when i do apt-get update && apt-get upgrade i get the following error Setting up mariadb-server-5.5 (5.5.47+maria-1~trusty) ... * ...
1
vote
0answers
62 views

SQL query causes server gone away

I'm developing a database system which stores and caluclates engine performance data. I have been created a new view which selects data from several tables and calculates some values. Now I'm running ...
0
votes
1answer
47 views

MySQL (mariaDB) trigger syntax always wrong

Im making a small game and i need to have a trigger on my members table, which will check the experience column, and anytime it gets bigger than certain values, the 'level' will become level+1. This ...
1
vote
1answer
131 views

How to set slow query log in MariaDB my.cnf?

It should be easy, but when I put these lines: log_slow_queries = 1 long_query_time = 1 log-slow-queries = /var/log/mysql/slow_query.log log_queries_not_using_indexes in [mysqld], MariaDB fails to ...
1
vote
2answers
119 views

Scaling for MariaDB / Percona / Galera Scaling

I ventured into the world of NoSQL database and as great as they are the lack of true ACID compliance has been a nightmare resulting in a lot of bad data so I am looking into relational databases. I ...
1
vote
0answers
94 views

mariadb slow when query works update or Insert

My boss said database is bad when query works in update and insert commands. What can I do for tuning? normally queries respond in select commands, It respond little results but page updated about ...
1
vote
2answers
106 views

Which service to use for unoptimized, slow mysql database ?

This will sound strange, but long story short. I have client running two CS Cart web shops one one dedicated server. Cs Cart is version 3.0.2 and each shop has around 2000 products. Website opens ...
0
votes
0answers
24 views

Can a Galera cluster be configured to allow reads-only while in a non-primary state?

If a node is unable to obtain a quorum, it goes into a non-primary state, where it will not accept any queries until it rejoins other nodes in primary state. There are config options to either ...
1
vote
1answer
179 views

Replicate only some tables of MariaDB database

I currently have a ready-made structure cluster with MariaDB Galera with two servers that keeps both updated database. However I now have the need to create a new similar structure but with one ...
2
votes
1answer
32 views

Which Table Will Get Locked With This Query

INSERT INTO stats.cps (time_stamp,entries,cust_id) select start_time, count(*) , c_id from gb.str where start_time between '$DATE10' and '$DATE' group by start_time, src_id order by start_time ASC ...
0
votes
0answers
25 views

Galera 3 node cluster - force an online state transfer without downtime on existing node

We have 3 node Galera cluster. On node 3 I wish to force a state transfer. We have out of sync issues, because table was MyISAM. Now InnoDB. Howto do that? Delete data files and restart? The cluster ...
0
votes
0answers
15 views

user privilege and connection with mysql client

Why this user cannot connect to mysql using the client CLI: show grants for 'user'@'localhost'; ...
1
vote
1answer
33 views

Corruption in mariadb binlog

I have an installation with mariadb version 10.0.21. I need to backup the binlog file every 5 minutes to TSM, but as the binlog is being written every second, i am afraid of the file getting ...
0
votes
1answer
63 views

MariaDB is Forgetting Previous Auto Increment IDs

I'm using MariaDB 5.5.39, and it seems like it is forgetting the max id of the auto-incremented primary key if I delete all rows from the table and then too much time passes before another row gets ...
2
votes
1answer
129 views

Corrupt InnoDB: Start mysqld only innodb_force_recovery=6

I am working with version 10.0.19-MariaDB-1~trusty-log and I'm only able to restart mysqld with innodb_force_recovery=6 and I don't know why. The output of the /usr/sbin/mysqld is the following: ...
0
votes
1answer
69 views

SET or VARCHAR for list of tags in a MySQL photos table?

I just discovered the SET column type for MySQL tables. I have a photos table with ARIA engine where I want to store tags/keywords for each photo. Now I use a VARCHAR type and then find the photos ...
0
votes
0answers
24 views

Data Base Migration - Adaptative Server Anywhere to Maria DB

I need to migrate a data base which is in my local computer to a on-line server. The RDBMS used in my local computer is Adaptative Server Anywhere 9.0.2.2451 while the RDBMS used on the server is ...
0
votes
2answers
69 views

Deleting rows from table where values less than an aggregate value

I'm attempting to remove duplicates from a table. CREATE TABLE media_views ( `companyid` INT (11) NOT NULL, `channel` INT(11) NOT NULL, `date` DATE NOT NULL, `views` INT(11) NOT NULL DEFAULT ...
0
votes
1answer
545 views

mariadb won't start (InnoDB error: space header page consists of zero bytes in data file ./ibdata1)

The following messages are in /var/log/mariadb/mariadb.log when I try to start mariadb: 151103 13:42:01 [Note] InnoDB: Initializing buffer pool, size = 128.0M 151103 13:42:01 [Note] InnoDB: Completed ...
0
votes
0answers
16 views

Basic 'grant proxy' failing

Using MariaDB 10, I'm trying a basic grant proxy... - and getting no success. I've tried many variations on the below session - can anyone hint at the problem? In the below, I'd expect the final ...
1
vote
1answer
67 views

Load Balancing multiple databases in a multi-tenant setup

We have a multi-tenant setup where each client of ours runs a DB that is identical to every other client. We were using Mysql sofar and with CentOS 7.x ,switched to MariaDB. If we want to distribute ...
1
vote
0answers
291 views

WSREP: failed to report last committed and stop

I have galera cluster and I have 4 nodes. I'm importing some data. however one node gives error. Warning. The warning is; warning WSREP: Failed to report last committed 59102, -q (interrupted system ...
0
votes
0answers
43 views

What would cause database CPU load to increase 5x+ during peak hours, when traffic only doubles?

I'll start with a screenshot of CPU load on my database server for the past three days. http://i.imgur.com/sSZJdCb.jpg As you can see, it spikes from 20% to 100% load every day (would be even higher ...
1
vote
0answers
136 views

mariadb galera cluster stop one node automaticly

I have Mariadb galera cluster. I have 4 nodes. but When one node become slow, it stop itself automaticly. that's the error. What should I do? 151030 17:17:14 [Note] WSREP: view((empty)) 151030 ...
1
vote
2answers
85 views

Optimize speed on 400GB MyISAM table

We have MariaDB server with single table with image url information. The table is about 400GB on disk and contains probably 400M rows. Table is partitioned in 1024 partitions. All queries are ...
0
votes
1answer
83 views

install Galera but mariadb existing on system

I try to install galera on ubuntu 14.04 system. It has already got mariadb and it's working. How can I install it? my command : sudo apt-get install -y rsync galera-3 mariadb-galera-server it ...
1
vote
0answers
39 views

Efficiently filtering a self join based on a separate table

I have a table into which I've accidentally introduced mostly duplicate data, and I need to work out what are duplicates so I can have them removed. So I join table x onto itself. Things get slow ...
0
votes
0answers
30 views

How to permanently set log format in MariaDB?

I use a dockerized MariaDB for my OwnCloud server. There is a known bug: The default log format is statement, OwnCloud requires binary. I can fix this by getting a shell to the dockerized MariaDB: ...
0
votes
0answers
75 views

Mariadb, Galera auto_increment_increment

I have a 3 node Galera cluster configured and as a temporary solution so I can re point a client at a time (for testing) I also have a master-master old style slave from the Galera cluster to the old ...
0
votes
0answers
62 views

Galera Cluster crashes because of “ALTER TABLE” statement?

We use on RHEL7 # rpm -qa | grep maria mariadb-5.5.41-2.el7_0.x86_64 mariadb-galera-common-5.5.41-2.el7ost.x86_64 mariadb-galera-server-5.5.41-2.el7ost.x86_64 Do I analyze logs correct that Galera ...
1
vote
1answer
22 views

nohup import not process

I tried to import job but my nohup command seems doesn't work. devinim@koha-db57:~/kohaaktarim$ nohup mysql -u root -p kohadata < kohaaktarim.sql & [1] 9619 devinim@koha-db57:~/kohaaktarim$ ...
1
vote
1answer
159 views

INSERT don't work with NOT NULL but UPDATE does, why?

I have this table definition: CREATE TABLE `media` ( `id` int(11) NOT NULL AUTO_INCREMENT, `brands_id` int(11) DEFAULT NULL, `media_type` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, ...
2
votes
2answers
125 views

ORDER BY indexedColumn ridiculously slow when used with LIMIT on MySQL

The MyISAM table has 4.5m rows. Query with just LIMIT returns fast; query with just ORDER BY returns fast; combining both it never finishes. I've also tried USE INDEX(indexedColumn, Latitude, ...
1
vote
1answer
43 views

Syntax error in UNION ALL [closed]

I have syntax error in UNION ALL line 8.. what is the mistake? I'm using mariadb, (Innodb) SELECT 'Süre Bitiş Tarihi','Tc Kimlik No', 'Kullanıcı Soyadı, Adı','E-posta', 'Telefon','Diğer ...
1
vote
1answer
22 views

Configure MariaDB to log row deletion ONLY

I'm investigating some rows/tables that intermittently go missing on a Magento site, and of course there's no entries in the error log. (I suspect Magento queries/rules or human error might be the ...
0
votes
2answers
166 views

Please recommend changes for my.cnf

I am not having any performance problems per se but want to improve my sites' performance if possible. Would appreciate any advice for how I can improve my.cnf. I have just one server, not ...
0
votes
0answers
121 views

Why my mariadb slow when I select all from empty table?

I try to find why my database slow when I select all table . That's empty table... MariaDB [kohadata]> select count(*) from biblio; +----------+ | count(*) | +----------+ | 0 | +----------+ ...
2
votes
1answer
133 views

Is a “Ranking” query's ORDER BY in FROM subquery is preserved?

I've read in the following links that the ORDER BY in FROM subquery can be ignored. Quoted from MariaDB knowledge base A query such as SELECT field1, field2 FROM (SELECT field1, field2 FROM table1 ...
0
votes
0answers
66 views

Can't create TokuDB table due to incorrect “no space left on device” error

It doesn't matter how I create the table, as long as the engine is set to TokuDB I get this error. The error is definitely inaccurate as I'm certain there is plenty of free space left on the disk. ...
0
votes
0answers
23 views

Is it possible to use secondary indexes with Mariadb and Spider?

I'm working upon a Mariadb cluster with 3 data nodes + 1 master node running Spider storage engine. Running queries from spider node, I cannot force data nodes to use secondary indexes, as happens ...
1
vote
1answer
521 views

MySQLWorkbench with MariaDB 10.0 Performance tab not working

I'm using MySQLWorkbench 6.3.3.0 (build 592) and I cannot use the performance tab on a Mariadb10 connection. This is the error I receive: This feature requires MySQL version 5.6.6 or newer ...
0
votes
0answers
46 views

Openssl issues with MariaDB

While trying to install Mariadb galera cluster through yum in my RHEL server I get the following error: [root@Arrac1 MongoDB]# yum install MariaDB-Galera-server MariaDB-client galera Loaded ...
0
votes
2answers
51 views

I need to know if a JOIN query is possible

I have one table like this: And one like this: What I want to do is select that "1" from status in the second table if the product_id number matches the number in the query column in the first ...
0
votes
0answers
42 views

MariaDB Database wiping monthly

I have a website running on CentOS 7 using 5.5.37-MariaDB. Every month one of my databases wipes itself. The database still exists, it's just that almost all our tables are missing, of our entered ...