This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG BASE_IMAGE | |
FROM "$BASE_IMAGE" | |
ARG MARIADB_BRANCH=11.1 | |
LABEL maintainer="MariaDB Buildbot maintainers" | |
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true | |
# This will make apt-get install without question | |
ARG DEBIAN_FRONTEND=noninteractive | |
# Enable apt sources |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker[01] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019 | |
create table Person(IDPerson INT UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL, LastLogin DATETIME); | |
insert into Person(LastLogin) values (NOW()), (NOW()), (NOW()); | |
select sleep(3); | |
sleep(3) | |
0 | |
create table Log ( | |
IDLog INT UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL, | |
FKIDPerson INT UNSIGNED, | |
Hash VARCHAR(50), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MariaDB [test]> create table t1 (i double); | |
Query OK, 0 rows affected (0.001 sec) | |
MariaDB [test]> insert into t1 values (20.50); | |
Query OK, 1 row affected (0.001 sec) | |
MariaDB [test]> select * from t1; | |
+------+ | |
| i | | |
+------+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:cli | |
COPY mysql_config /usr/bin/ | |
RUN apt-get update ; \ | |
apt-get install -y libmariadbd-dev \ | |
&& docker-php-ext-configure mysqli --with-mysqli=/usr/bin/mysql_config --with-mysql-sock=/tmp/mariadb.sock \ | |
&& docker-php-ext-install mysqli pdo_mysql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mariadbd] | |
#event_scheduler=ON | |
innodb-buffer-pool-size=2M | |
innodb-page-size=4k | |
performance_schema = 1 | |
# downsizing performance schema memory usage: T99485 | |
performance_schema_max_thread_instances = 500 | |
performance_schema_max_cond_instances = 1000 | |
performance_schema_accounts_size = 300 | |
performance_schema_hosts_size = 300 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use mysql; | |
set @wsrep_is_on=(select sum(VARIABLE_NAME='wsrep_on' AND SESSION_VALUE='ON') from information_schema.SYSTEM_VARIABLES); | |
SELECT concat('%', GROUP_CONCAT(OPTION), '%') INTO @replicate_opt FROM (SELECT DISTINCT concat('REPLICATE_', UPPER(ENGINE)) AS OPTION FROM information_schema.TABLES WHERE TABLE_SCHEMA=DATABASE() AND TABLE_NAME IN ('time_zone', 'time_zone_name', 'time_zone_transition', 'time_zone_transition_type', 'time_zone_leap_second') AND ENGINE in ('MyISAM', 'Aria')) AS o ORDER BY OPTION DESC; | |
set @wsrep_cannot_replicate_tz=@wsrep_is_on AND (select sum(VARIABLE_NAME='wsrep_mode' and GLOBAL_VALUE NOT LIKE @replicate_opt) from information_schema.SYSTEM_VARIABLES); | |
execute immediate if(@wsrep_cannot_replicate_tz, "select ENGINE into @time_zone_engine from information_schema.TABLES where TABLE_SCHEMA=DATABASE() and TABLE_NAME='time_zone'", 'do 0'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// testing https://bugs.launchpad.net/ubuntu/+source/mariadb-10.6/+bug/1970634 | |
#include <stdexcept> | |
class aio_uring | |
{ | |
static constexpr char volatile * v= 0; | |
public: | |
aio_uring() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connection node_2; | |
connection node_1; | |
CREATE TABLE `legacy_item_requests` ( | |
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | |
`created_at` timestamp NULL DEFAULT NULL, | |
`updated_at` timestamp NULL DEFAULT NULL, | |
`request` tinyint(4) NOT NULL DEFAULT '0', | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | |
SELECT * FROM legacy_item_requests; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MariaDB Database per user, on demand (aka systemd multi-instance socket activated) | |
This is to provide attendee's the notes needed related to the talk without | |
needing to transcribe from script or video: | |
Attendee notes: | |
My.cnf template to be copied into user home directories: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 34 (Thread 0x7f4089ffb640 (LWP 896292)): | |
#0 0x00007f40dd56c7b0 in __lll_lock_wait () from /lib64/libpthread.so.0 | |
No symbol table info available. | |
#1 0x00007f40dd5656b2 in pthread_mutex_lock () from /lib64/libpthread.so.0 | |
No symbol table info available. | |
#2 0x0000000000dc1f5e in psi_mutex_lock (that=0x15ca200 <buf_pool>, file=<optimized out>, line=<optimized out>) at /home/dan/repos/mariadb-server-10.8/mysys/my_thr_init.c:489 | |
state = {m_flags = 100, m_operation = PSI_MUTEX_LOCK, m_mutex = 0x3e, m_thread = 0xffffffffffffffff, m_timer_start = 32, m_timer = 0x7f4089ff9a50, m_wait = 0x0} | |
locker = 0x0 | |
result = <optimized out> |
NewerOlder