Warning: Undefined variable $mypidfile in /volume1/web/files/doc/MySQL.php on line 187 Warning: Undefined variable $』組成,不分大小寫。預設字元集是cp1252 in /volume1/web/files/doc/MySQL.php on line 817
MySQL講義
第一部分:關聯式資料庫
第二部分:MySQL
第一部分:關聯式資料庫
壹、基本關係
ALTER TABLE 子表名
ADD [CONSTRAINT 外鍵名] FOREIGN KEY [id] (index_col_name, ...)
REFERENCES 父表名 (index_col_name, ...)
[ON DELETE {CASCADE | SET Null | NO ACTION | RESTRICT}]
[ON UPDATE {CASCADE | SET Null | NO ACTION | RESTRICT}]
建立多欄外鍵的例子:INDEX (product_category, product_id), FOREIGN KEY (product_category, product_id) REFERENCES product(category, id) ON UPDATE CASCADE ON DELETE RESTRICT,建立單欄外鍵的例子:
INDEX (customer_id), FOREIGN KEY (customer_id) REFERENCES customer(id),
SHOW CREATE TABLE 子表名;刪除外鍵的指令:
alter table drop foreign key '外鍵名';如果創外鍵時沒有使用「CONSTRAINT 外鍵名」命名,刪外鍵時會出錯,但在提示出錯的資訊中會顯示foreign key的系統預設外鍵名->用它去刪除外鍵。
貳、資料庫正規化的例子
好的設計第二部分:MySQL
MySQL 5.1參考手冊的正體中文翻譯在「台灣PHP users group」的 http://twpug.net/docs/mysql-5.1/ 上面。
零、基本說明
一、名詞說明
二、檔案分布
(一)CentOS
/usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file=""
三、基本操作
四、初始較調
(一)在linux下操作
(二)在Windows下操作
| mysqld | 用完整調試和自動儲存器分配檢查編譯 |
| mysqld-opt | 對Pentium 處理器最佳化。 |
C:\mysql\bin\mysqld要關閉MySQL伺服器,請執行:
C:\mysql\bin\mysqladmin -u root shutdown注意:Win95/Win98不支援命名管道的創建。在Win95/Win98上,你只能使用命名管道連接一個NT伺服器上的遠端MySQL。
五、不透過 PHP 直接操作
(一)在 OS 下操作
(二)在 MySQL 互動模式下操作
請見「基本SQL命令」,補充以下命令:1|SELECT * FROM limbs WHERE legs=0;
2|thing legs arms
3|squid 0 10
4|fish 0 0
六、救援
(一)修復資料表
mysql -uroot -p密碼 use 資料庫名; repair table 資料表名;
/etc/init.d/mysqld stop /usr/sbin/myisamchk -f /var/lib/mysql/資料庫名稱/*.MYI /etc/init.d/mysqld start
(二)忘掉密碼重設密碼
mysql>use mysql ;
mysql>update user set password=password('new_password') where user = 'root' ;
mysql>FLUSH PRIVILEGES;
mysql>exit;
(三)4.1前後的密碼驗證
小括號(…)是指令的一部分;中括號[…]代表可選用的選項,指令中不一定要下這些指示。
八、轉義字元
| 轉義字元 | 意義 | 備註 |
| \0 | ASCII 字元 0 | 會使欄值無法顯示 |
| \n | 換行符號 | |
| \t | 一個 TAB 字元 | |
| \r | 換行字元 | |
| \b | 倒退字元 | 會使欄值無法顯示 |
| \' | 單引號字元 | |
| \" | 雙引號字元 | |
| \\ | 反斜線字元 | |
| \% | 百分比字元 | 實測無效 |
| \_ | 底線字元 | 實測無效 |
壹、權限
一、使用者權限
二、管理員權限
三、其他權限
四、授予權限
五、權限表格
mysql資料庫中有五張表,登錄著權限管理資訊:(一)五權限表格的結構:
(二)驗證機制:
(三)讓手動更改生效:
手動更改權限表格,而不透過grant、revoke指令時,MySQL伺服器不會知道權限已改,可透過以下三種方式告知MySQL伺服器:
六、授權原則
七、撤回權限
貳、欄
一、欄的屬性
二、資料型別
(一)整數型別
設定欄位長度無效。(二)浮點數型別
DECIMAL中寬與小數位對DECIMAL(寬,小數位)取值範圍的影響: 類型說明 取值範圍(MySQL < 3.23) 取值範圍(MySQL >= 3.23) DECIMAL(1, 1) -9.9 到 99.9 -0.9 到 0.9 DECIMAL(2, 1) -9.9 到 99.9 -9.9 到 9.9 DECIMAL(4, 1) -9.9 到 99.9 -999.9 到 999.9 DECIMAL(5, 1) -99.9 到 999.9 -9999.9 到 9999.9 DECIMAL(6, 1) -999.9 到 9999.9 -99999.9 到 99999.9 DECIMAL(6, 2) -99.99 到 999.99 -9999.99 到 9999.99 DECIMAL(6, 3) -9.999 到 99.999 -999.999 到 999.999
在MySQL 3.23 及以後的版本中,DECIMAL(M, D) 的取值範圍等於早期版本中的DECIMAL(M + 1, D) 的取值範圍。
(三)日期時間型別
新版的DATETIME和TIMESTAMP格式已經一樣,長度都是19,值也都只接受now()或字串,差別在預設值設定而已。(四)字串型別
(五)特別型別
三、建立欄
參、辨識器
一、辨識器的名稱
二、別名
肆、設定、系統變數、會期變數連結
一、設定
設定檔為 my.cnf 。其中一般不會寫資料庫連結上限 Max_connections ,連結上限使用預設值 100 ,這也是 Apache 連結上限設定 MaxKeepAliveRequests 的預設值(設定於httpd.conf中)。一般性內容如下:
[mysqld] # 設定行程
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
old_passwords=1 # 預設使用舊密碼格式,以與 mysql 3.x 的客戶相容
[mysql.server] # 設定伺服器
user=mysql
basedir=/var/lib
[mysqld_safe] # 設定資安
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
二、系統變數
mysqld伺服器維護兩種系統變數。全域變數影響伺服器整體操作。會期變數影響具體用戶端連接的操作。
當伺服器啟動時,它將一群系統運作要用到的變數,以預設值化為全域變數。這些變數的值可以在配置檔中或在命令行中進行更改。伺服器啟動後,通過連接伺服器並執行「SET GLOBAL var_name」語句,可以動態更改這些全域變數。但想要更改全域變數,必須具有SUPER權限。
全域變數值任何用戶端都可以看見。然而,它只影響更改後連接的客戶的從該全域變數初始化的相應會期變數。不影響之前已經連接的用戶端的會期變數(即使用戶端執行「SET GLOBAL」語句也不影響)。
當然重新啟動 MySQL ,全域變數會回到預設值及配置檔中的設定。
伺服器還為每個連接的用戶端維護一組一組會期變數。在連接時使用相應全域變數的現有值對用戶端的會期變數進行初始化。對於動態的會期變數,用戶端可以通過「SET SESSION var_name」語句更改它們。設置會期變數不需要特殊權限,但用戶端只能更改自己的會期變數,而不能更改其它用戶端的會期變數。
LOCAL是SESSION的同義詞。如果設置變數時不指定GLOBAL、SESSION或者LOCAL,預設使用SESSION。
MySQL5.1手冊 5.3.3.1 節中已列出所有可設定的「動態系統變數」,本人已將其整合在本文附件中。
select系統變數,變數名前一定要加「@@」,有「SELECT @@global.變數名」「SELECT @@session.變數名」「SELECT @@變數名」。
set 系統變數值時,變數名前有不加前綴的「SET GLOBAL 變數名=值」「SET SESSION 變數名=值」「SET 變數名=值」;有加前綴「@@」的「SET @@global.變數名=值」「SET @@session.變數名=值」。
@@global和@@session可以視為特別的二維陣列,分別代表全域和會期的系統變數,其諸欄為各系統變數,可以select可以set。
(一)取變數值及設定變數值指令:
附錄是系統變數的一覽表。
(二)運用系統變數值,調整資料的字集編碼:
假設資料庫整體設定採預設值,而JJ資料庫連線校對採utf8_general_ci,選用資料庫的前後變化如下:
| 系統變數 | character_set_database | collation_database |
|---|---|---|
| use JJ前 | latin1 | latin1_swedish_ci |
| use JJ後 | utf8 | utf8_general_ci |
而「set names utf8」前後變化如下:
| 系統變數 | character_set_client | character_set_connection | character_set_results | collation_connection | character_set_system |
|---|---|---|---|---|---|
| use JJ前 | latin1 | latin1 | latin1 | latin1_swedish_ci | utf8 |
| use JJ後 | utf8 | utf8 | utf8 | utf8_general_ci | utf8 |
在程式撰寫上一般是去偵測資料庫的「character_set_database」用以決定隨後的「set names」要採用那一種揙碼。對資料解讀來說:欄位的字集設定優先於資料表的字集設定,再優先於資料庫的字集設定,再優先於整體的字集設定。
SELECT 'string'; SELECT _latin1'string'; SELECT _latin1'string' COLLATE latin1_danish_ci;
| 客 | →character_set_client→character_set_connection→ | 字串比較: | MySQL Server |
|---|---|---|---|
| 戶 | ←←←character_set_results←←← | 欄的校對設定或 collation_connection |
(三)一些可以額外設定的系統變數:
對以下各系統變數進行設定時,前面要加「set」動詞。
三、用戶變數:非系統的會期變數
在一次連結中設定一組會期變數值然後在以後引用它;這樣可以將值從一個語句傳遞到另一個語句。一個客戶端定義的變數不能被其它客戶端看到或使用。當客戶端退出時,該客戶端連接的所有變數將自動釋放。
用戶變數的形式為@變數名,其中變數名可以使用當前字元集的文字字元、數字字元、『.』、『_』和『 (Latin1)。可以用mysqld的--default-character-set選項更改字元集。
設置用戶變數的方法是執行SET語句:「SET @變數名 = 演算式 [, @變數名 = 演算式] ...」。對於SET,可以使用=或:=作為派值符號。派給每個變數的演算式其算出值可以為整數、實數、字串或者NULL。如果使用沒有初始化的變數,其值是NULL。
也可以用其他語句代替SET來為會期變數派一個值。在這種情況下,派值符號必須為:=而不能用=,因為在非SET語句中=被視為一個比較操作符號,如:
SET @t1=0, @t2=0, @t3=0; SELECT @t1:=(@t2:=1)+@t3:=4,@t1,@t2,@t3;傳回四欄
+----------------------+------+------+------+ | @t1:=(@t2:=1)+@t3:=4 | @t1 | @t2 | @t3 | +----------------------+------+------+------+ | 5 | 5 | 1 | 4 | +----------------------+------+------+------+
另一個表現用戶變數優點的例子:
SELECT @min_price:=MIN(price),@max_price:=MAX(price) FROM shop; SELECT * FROM shop WHERE price=@min_price OR price=@max_price;傳回最高價和最低價兩筆:
+---------+--------+-------+ | article | dealer | price | +---------+--------+-------+ | 0003 | D | 1.25 | | 0004 | D | 19.95 | +---------+--------+-------+
四、局部變數
局部變數不加前綴「@」,命名規則同用戶變數,但有效範圍比用戶變數更小,只在其所在的「BEGIN ... END」區塊內。宣告指令為「DECLARE var_name[,...] type [DEFAULT value]」;設值指令為「SET var_name = expr [, var_name = expr] ...」;由欄值派入變數值為「SELECT col_name[,...] INTO var_name[,...] table_expr」;取變數值為「SELECT 變數名」。例如:
SELECT id,data INTO x,y FROM test.t1 LIMIT 1;
從t1表中拿出id,data的欄值塞入x,y變數中。
局部變數名不能和欄名一樣。如果SELECT ... INTO ... 中參考到一個欄名,同時也參考到一個與欄名相同名字的局部變數,MySQL會把參考解釋為一個局部變數的名字,不會解釋成欄名。
伍、索引
一、簡介
各家資料庫的索引實作並不相同,所以如果要讓SQL指令跨資料庫,最好避免資料庫的邏輯操作依賴索引。所幸,在大多數的資料操作指令中,索引只影響速度,不影響指令可否執行。除了unique類的索引以外,這一點後面會有示例講解。使用索引會加快蒐尋,但會拖慢增、改、刪資料。
在MySQL中索引有以下限制:
單獨建立索引的完整命令如下:
create [unique|fulltext|spatial] index 索引名 [USING 索引型別] on 表名(欄名 [(長度)] [asc|desc],….)
如果建索引時使用「前欄+後欄」,以下查詢會使用索引:
以下查詢不會使用索引:
刪除索引:
DROP INDEX 索引名 ON 表名 或 ALTER TABLE 表名 DROP INDEX 索引名 或 ALTER TABLE 表名 DROP PRIMARY KEY
查看索引結構:
show keys from table_name; 或 show index from table_name;各欄位含義:
二、唯一約束的示例
unique與primary key的區別,簡單講 primary key=unique+not null。具體區別如下:
create table menus(id tinyint(4) not null auto_increment,label varchar(10) null,url varchar(20) null,unique key(id));
insert into menus(label,url) values('Home','home.html');
insert into menus(label,url) values('About us','aboutus.html');
insert into menus(label,url) values('Services','services.html');
insert into menus(label,url) values('Feedback','feedback.html');
select * from menus;
+---+----------+---------------+
| id| label | url |
+---+----------+---------------+
| 1 | Home | home.html |
| 2 | About us | aboutus.html |
| 3 | Services | services.html |
| 4 | Feedback | feedback.html |
+---+----------+---------------+
如果現在插入一條違背唯一約束的記錄,MySQL會中斷操作,提示出錯:
insert into menus(id,label,url) values(4,'Contact us','contactus.html'); 回應:ERROR 1062 (23000): Duplicate entry '4' for key 'id'要繞過「中斷操作,提示出錯」有三種做法:
(一)insert ignore:
如在前述INSERT語句添加IGNORE關鍵字,且違背唯一約束,MySQL不會嘗試去執行這條語句,因此也不會返回錯誤:
insert ignore into menus(id,label,url) values(4,'Contact us','contactus.html'); 回應:Query OK, 0 rows affected (0.00 sec)
當有很多的INSERT語句需要循序執行時,IGNORE關鍵字可以保證不管哪一個INSERT包含了重複的鍵值,MySQL都回跳過它,而不是放棄全部操作。
(二)replace into:
replace into sc (name,class,score) values ('呂布','二年二班',77);
(三)insert on duplicate key update:
另一種避免出現程式中斷的方法是使用「ON DUPLICATE KEY UPDATE…」子句:
insert into menus(id,label,url) values(4,'Contact us','contactus.html') on duplicate key update label='Contact us',url='contactus.html';
這時違背唯一約束的那一筆,雖沒有依指示插入新筆,但會依指示更新為新欄值。當然那一筆的舊欄值會被取代掉了。
select * from menus; +---+------------+----------------+ | id| label | url | +---+------------+----------------+ | 1 | Home | home.html | | 2 | About us | aboutus.html | | 3 | Services | services.html | | 4 | Contact us | contactus.html | +---+------------+----------------+
三、速度
布署資料表時,加快查詢速度的要領:
陸、指令
SQL指令分為三群:
數據操作語言
一、SELECT
(一)基本用法
SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [HIGH_PRIORITY]
[DISTINCT | DISTINCTROW | ALL]
select_expression,...
[INTO {OUTFILE | DUMPFILE} 'file_name' export_options]
[FROM table_references
[WHERE where_definition]
[GROUP BY col_name,...]
[HAVING where_definition]
[ORDER BY {unsigned_integer | col_name | formula} [ASC | DESC] ,...]
[LIMIT [offset,] rows]
[PROCEDURE procedure_name] ]
(二)where,找出符合條件的筆數:
| 模式 | 描述 |
|---|---|
| ^ | 匹配輸入字串的開始位置。如果設定了 RegExp 對象的 Multiline 屬性,^ 也匹配 ' ' 或 ' ' 之後的位置。 |
| $ | 匹配輸入字串的結束位置。如果設定了RegExp 對象的 Multiline 屬性,$ 也匹配 ' ' 或 ' ' 之前的位置。 |
| . | 匹配除 ' ' 之外的任何單個字元。UTF8中文字算3個.。要匹配包括 ' ' 在內的任何字元,請使用象 '[. ]' 的模式。 |
| [...] | 字符集合。匹配所包含的任意一個字元。例如, '[abc]' 可以匹配 'plain' 中的 'a'。 |
| [^...] | 負值字符集合。匹配未包含的任意字元。例如, '[^abc]' 可以匹配 'plain' 中的'p'。 |
| p1|p2|p3 | 匹配 p1 或 p2 或 p3。例如,'z|food' 能匹配 'z' 或 'food'。'(z|f)ood' 則匹配 'zood' 或 'food'。 |
| * | 匹配前面的子表達式零次或多次。例如,zo* 能匹配 'z' 以及 'zoo'。* 等價于{0,}。 |
| + | 匹配前面的子表達式一次或多次。例如,'zo+' 能匹配 'zo' 以及 'zoo',但不能匹配 'z'。+ 等價于 {1,}。 |
| {n} | n 是一個非負整數。匹配確定的 n 次。例如,'o{2}' 不能匹配 'Bob' 中的 'o',但是能匹配 'food' 中的兩個 o。 |
| {n,m} | m 和 n 均為非負整數,其中n <= m。最少匹配 n 次且最多匹配 m 次。 |
例:「SELECT page_namespace,page_title FROM wiki_page WHERE page_title REGEXP '海星培力/論述與實踐/.{9}$'」
找出在「海星培力/論述與實踐/」之後緊跟著三個中文字,然後就結束的各筆。
(三)結合兩張表(完全結合):
(四)結合兩張表(左側結合,較完全結合為多):
JOIN(結合) CROSS JOIN (笛卡兒積):「select * from 表1,表2」或「「select * from 表1 join 表2」 INNER JOIN (等結合):「select * from 表1,表2 where 欄=欄」或「「select * from 表1 join 表2 on 欄=欄」 LEFT JOIN:「select * from 表1,表2 where 欄*=欄」或「select * from 表1 left join 表2 on 欄=欄」 NATURAL LEFT JOIN:「select * from 表1 natural left join 表2」自動找兩表中同名欄對應起來。 RIGHT JOIN:其他關聯式資料庫支援,但MySQL不支援,因為對調就成了LEFT JOIN,反而影響效能。
(五)聚合函數(以下的欄也可以用演算式取代):
句法:mysql> SELECT * FROM `ta`; +----+------+ | id | name | +----+------+ | 1 | a | | 1 | b | | 1 | c | | 1 | d | | 2 | a | | 2 | b | | 2 | c | | 3 | d | +----+------+ 8 rows in set (0.00 sec) mysql> SELECT `id`,GROUP_CONCAT(`name`) FROM `ta` GROUP BY `id`; +----+----------------------+ | id | GROUP_CONCAT(`name`) | +----+----------------------+ | 1 | a c b d | | 2 | a c b | | 3 | d | +----+----------------------+
(六)order排序:必在where、group之後,之前會錯。
(七)limit範圍:
(八)子查詢(Subquery):
| 位置 | Select區間 | From區間 | Where區間 |
|---|---|---|---|
| 意義 | 一個子查詢回傳資料給母查詢當作一個欄位使用,只能回傳單欄資料。子查詢的 where 條件能與母查詢的 from 區塊比對。 | 當作一個 templateTable ,可以給 select、where 直接使用,也可以與 join 聯合使用。 | 當作一種條件比對資料,透過 in、exist、= 等運算子來做條件限制 |
(九)用於SELECT和WHERE子句的函式:
非特定資料型別二、insert,delete,update
數據定義語言
三、ALTER
四、Create
五、Drop
其他
六、SHOW
七、set option(舊版)或set(新版)
此處的set是敘述句的主動詞,不是select、update中的set,或欄位類別中的set。
SET OPTION設定伺服器的系統變數或客戶操作的會期變數。設定的任何選擇有效到當前會期結束,或直到你設定不同的值。新版建議用SET不建議用SET OPTION。
八、備份
備份sql serverUSE master # 建立備份數據的 device EXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwind_1.dat' BACKUP DATABASE pubs TO testBack # 開始備份
柒、觸發器(trigger)
SQL觸發器的基本觀念是:程式邏輯不在 PHP 等前端程式做處理,而是推遲到資料庫這層來處理。
MySQL 的 Trigger 功能可以在對 record 進行處理時,觸發特定的事件。舉個例子,若是資料表中有個欄位(eg. dt),型別是 datetime ,那麼它的預設值就必定要是常數。這樣一來若是要利用這個欄位來記錄這筆資料的的時間,就勢必要在程式端(PHP等)修改 record 的時候自行取得現在的「時間」,然後再寫入到資料庫中。若是改用 Trigger 來處理,我們可以告訴資料庫當某個資料表的 record 被 update 時,請資料庫自動取得現在的「時間」並寫入 dt 欄位中,這樣子一來就等同於讓 dt 這個欄位的預設值變成 CURRENT_TIMESTAMP。
指令格式「Create Trigger 觸發名稱 before|after insert|update|delete on 資料表名稱 for each row 指令」「DROP TRIGGER 觸發名稱」。
範例:如 test 表中有一欄 dt 其格式為 datetime ,所以無法設定預設值為目前時間,可以建一叫test_bu觸發器「CREATE TRIGGER `test_bu` before UPDATE ON `test` FOR EACH ROW SET NEW.dt=CURRENT_TIMESTAMP」
「CREATE TRIGGER default_for_timestamp_update BEFORE UPDATE ON mytable FOR EACH ROW IF NEW.hidetype != OLD.hidetype AND NEW.hidetype != 0 THEN SET NEW.charge_dateline = UNIX_TIMESTAMP(); END IF;」
MySQL自5.0 開始提供觸發功能,5.1之後才較為完整。以下是觸發器的使用限制:
捌、早期的中文問題
附錄:系統變數一覽表:
| 變數 | 可設 | 型別 | 預設值 | |
|---|---|---|---|---|
| 1 | allow_suspicious_udfs | OFF | ||
| 2 | alter_algorithm | DEFAULT | ||
| 3 | analyze_sample_percentage | 100.000000 | ||
| 4 | aria_block_size | 8192 | ||
| 5 | aria_checkpoint_interval | 30 | ||
| 6 | aria_checkpoint_log_activity | 1048576 | ||
| 7 | aria_encrypt_tables | OFF | ||
| 8 | aria_force_start_after_recovery_failures | 0 | ||
| 9 | aria_group_commit | none | ||
| 10 | aria_group_commit_interval | 0 | ||
| 11 | aria_log_dir_path | /var/packages/MariaDB10/target/mysql/ | ||
| 12 | aria_log_file_size | 1073741824 | ||
| 13 | aria_log_purge_type | immediate | ||
| 14 | aria_max_sort_file_size | 9223372036853727232 | ||
| 15 | aria_page_checksum | ON | ||
| 16 | aria_pagecache_age_threshold | 300 | ||
| 17 | aria_pagecache_buffer_size | 134217728 | ||
| 18 | aria_pagecache_division_limit | 100 | ||
| 19 | aria_pagecache_file_hash_size | 512 | ||
| 20 | aria_recover_options | BACKUP QUICK | ||
| 21 | aria_repair_threads | 1 | ||
| 22 | aria_sort_buffer_size | 268434432 | ||
| 23 | aria_stats_method | nulls_unequal | ||
| 24 | aria_sync_log_dir | NEWFILE | ||
| 25 | aria_used_for_temp_tables | ON | ||
| 26 | auto_increment_increment | Both | Integer | 1 |
| 27 | auto_increment_offset | Both | Integer | 1 |
| 28 | autocommit | Both | Boolean | ON |
| 29 | automatic_sp_privileges | Global | Boolean | ON |
| 30 | back_log | 80 | ||
| 31 | basedir | /var/packages/MariaDB10/target/usr/local/mariadb10.11 | ||
| 32 | big_tables | Both | Boolean | OFF |
| 33 | bind_address | 0.0.0.0 | ||
| 34 | binlog_alter_two_phase | OFF | ||
| 35 | binlog_annotate_row_events | ON | ||
| 36 | binlog_cache_size | Global | Integer | 32768 |
| 37 | binlog_checksum | Global | String | CRC32 |
| 38 | binlog_commit_wait_count | 0 | ||
| 39 | binlog_commit_wait_usec | 100000 | ||
| 40 | binlog_direct_non_transactional_updates | Both | Boolean | OFF |
| 41 | binlog_expire_logs_seconds | 0 | ||
| 42 | binlog_file_cache_size | 16384 | ||
| 43 | binlog_format | Both | Enumeration | MIXED |
| 44 | binlog_optimize_thread_scheduling | ON | ||
| 45 | binlog_row_image | Both | Enumeration | FULL |
| 46 | binlog_row_metadata | NO_LOG | ||
| 47 | binlog_stmt_cache_size | Global | Integer | 32768 |
| 48 | bulk_insert_buffer_size | Both | Integer | 8388608 |
| 49 | character_set_client | Both | String | utf8mb3 |
| 50 | character_set_connection | Both | String | utf8mb3 |
| 51 | character_set_database | Both | String | utf8mb3 |
| 52 | character_set_filesystem | Both | String | binary |
| 53 | character_set_results | Both | String | utf8mb3 |
| 54 | character_set_server | Both | String | utf8mb3 |
| 55 | character_set_system | utf8mb3 | ||
| 56 | character_sets_dir | /volume1/@appstore/MariaDB10/usr/local/mariadb10.11/share/mysql/charsets/ | ||
| 57 | check_constraint_checks | ON | ||
| 58 | collation_connection | Both | String | utf8mb3_general_ci |
| 59 | collation_database | Both | String | utf8mb3_general_ci |
| 60 | collation_server | Both | String | utf8mb3_general_ci |
| 61 | column_compression_threshold | 100 | ||
| 62 | column_compression_zlib_level | 6 | ||
| 63 | column_compression_zlib_strategy | DEFAULT_STRATEGY | ||
| 64 | column_compression_zlib_wrap | OFF | ||
| 65 | completion_type | Both | Enumeration | NO_CHAIN |
| 66 | concurrent_insert | Global | Enumeration | AUTO |
| 67 | connect_timeout | Global | Integer | 10 |
| 68 | core_file | OFF | ||
| 69 | datadir | /var/packages/MariaDB10/target/mysql/ | ||
| 70 | date_format | %Y-%m-%d | ||
| 71 | datetime_format | %Y-%m-%d %H:%i:%s | ||
| 72 | deadlock_search_depth_long | 15 | ||
| 73 | deadlock_search_depth_short | 4 | ||
| 74 | deadlock_timeout_long | 50000000 | ||
| 75 | deadlock_timeout_short | 10000 | ||
| 76 | debug_no_thread_alarm | OFF | ||
| 77 | default_password_lifetime | Global | Integer | 0 |
| 78 | default_regex_flags | |||
| 79 | default_storage_engine | Both | Enumeration | InnoDB |
| 80 | default_tmp_storage_engine | Both | Enumeration | |
| 81 | default_week_format | Both | Integer | 0 |
| 82 | delay_key_write | Global | Enumeration | ON |
| 83 | delayed_insert_limit | Global | Integer | 100 |
| 84 | delayed_insert_timeout | Global | Integer | 300 |
| 85 | delayed_queue_size | Global | Integer | 1000 |
| 86 | disconnect_on_expired_password | OFF | ||
| 87 | div_precision_increment | Both | Integer | 4 |
| 88 | encrypt_binlog | OFF | ||
| 89 | encrypt_tmp_disk_tables | OFF | ||
| 90 | encrypt_tmp_files | OFF | ||
| 91 | enforce_storage_engine | |||
| 92 | eq_range_index_dive_limit | Both | Integer | 200 |
| 93 | event_scheduler | Global | Enumeration | OFF |
| 94 | expensive_subquery_limit | 100 | ||
| 95 | expire_logs_days | Global | Integer | 0.000000 |
| 96 | explicit_defaults_for_timestamp | Both | Boolean | ON |
| 97 | extra_max_connections | 1 | ||
| 98 | extra_port | 0 | ||
| 99 | federated_pushdown | OFF | ||
| 100 | flush | Global | Boolean | OFF |
| 101 | flush_time | Global | Integer | 0 |
| 102 | foreign_key_checks | Both | Boolean | ON |
| 103 | ft_boolean_syntax | Global | String | + -><()~*:""&| |
| 104 | ft_max_word_len | 84 | ||
| 105 | ft_min_word_len | 4 | ||
| 106 | ft_query_expansion_limit | 20 | ||
| 107 | ft_stopword_file | (built-in) | ||
| 108 | general_log | Global | Boolean | OFF |
| 109 | general_log_file | Global | Filename | jendoNas2.log |
| 110 | group_concat_max_len | Both | Integer | 1048576 |
| 111 | gtid_binlog_pos | |||
| 112 | gtid_binlog_state | |||
| 113 | gtid_cleanup_batch_size | 64 | ||
| 114 | gtid_current_pos | |||
| 115 | gtid_domain_id | 0 | ||
| 116 | gtid_ignore_duplicates | OFF | ||
| 117 | gtid_pos_auto_engines | |||
| 118 | gtid_slave_pos | |||
| 119 | gtid_strict_mode | OFF | ||
| 120 | have_compress | YES | ||
| 121 | have_crypt | YES | ||
| 122 | have_dynamic_loading | YES | ||
| 123 | have_geometry | YES | ||
| 124 | have_openssl | YES | ||
| 125 | have_profiling | YES | ||
| 126 | have_query_cache | YES | ||
| 127 | have_rtree_keys | YES | ||
| 128 | have_ssl | DISABLED | ||
| 129 | have_symlink | YES | ||
| 130 | histogram_size | 254 | ||
| 131 | histogram_type | DOUBLE_PREC_HB | ||
| 132 | host_cache_size | Global | Integer | 279 |
| 133 | hostname | jendoNas2 | ||
| 134 | idle_readonly_transaction_timeout | 0 | ||
| 135 | idle_transaction_timeout | 0 | ||
| 136 | idle_write_transaction_timeout | 0 | ||
| 137 | ignore_builtin_innodb | OFF | ||
| 138 | ignore_db_dirs | |||
| 139 | in_predicate_conversion_threshold | 1000 | ||
| 140 | init_connect | Global | String | |
| 141 | init_file | |||
| 142 | init_slave | Global | String | |
| 143 | innodb_adaptive_flushing | Global | Boolean | ON |
| 144 | innodb_adaptive_flushing_lwm | Global | Integer | 10.000000 |
| 145 | innodb_adaptive_hash_index | Global | Boolean | OFF |
| 146 | innodb_adaptive_hash_index_parts | 8 | ||
| 147 | innodb_alter_copy_bulk | ON | ||
| 148 | innodb_autoextend_increment | Global | Integer | 64 |
| 149 | innodb_autoinc_lock_mode | 1 | ||
| 150 | innodb_buf_dump_status_frequency | 0 | ||
| 151 | innodb_buffer_pool_chunk_size | 1048576 | ||
| 152 | innodb_buffer_pool_dump_at_shutdown | Global | Boolean | ON |
| 153 | innodb_buffer_pool_dump_now | Global | Boolean | OFF |
| 154 | innodb_buffer_pool_dump_pct | Global | Integer | 25 |
| 155 | innodb_buffer_pool_filename | Global | Filename | ib_buffer_pool |
| 156 | innodb_buffer_pool_load_abort | Global | Boolean | OFF |
| 157 | innodb_buffer_pool_load_at_startup | ON | ||
| 158 | innodb_buffer_pool_load_now | Global | Boolean | OFF |
| 159 | innodb_buffer_pool_size | Global | Integer | 16777216 |
| 160 | innodb_change_buffer_max_size | Global | Integer | 25 |
| 161 | innodb_change_buffering | Global | Enumeration | none |
| 162 | innodb_checksum_algorithm | Global | Enumeration | full_crc32 |
| 163 | innodb_cmp_per_index_enabled | Global | Boolean | OFF |
| 164 | innodb_compression_algorithm | zlib | ||
| 165 | innodb_compression_default | OFF | ||
| 166 | innodb_compression_failure_threshold_pct | Global | Integer | 5 |
| 167 | innodb_compression_level | Global | Integer | 6 |
| 168 | innodb_compression_pad_pct_max | Global | Integer | 50 |
| 169 | innodb_data_file_path | ibdata1:10M:autoextend | ||
| 170 | innodb_data_home_dir | /var/packages/MariaDB10/target/mysql | ||
| 171 | innodb_deadlock_detect | Global | Boolean | ON |
| 172 | innodb_deadlock_report | full | ||
| 173 | innodb_default_encryption_key_id | 1 | ||
| 174 | innodb_default_row_format | Global | Enumeration | dynamic |
| 175 | innodb_defragment | OFF | ||
| 176 | innodb_defragment_fill_factor | 0.900000 | ||
| 177 | innodb_defragment_fill_factor_n_recs | 20 | ||
| 178 | innodb_defragment_frequency | 40 | ||
| 179 | innodb_defragment_n_pages | 7 | ||
| 180 | innodb_defragment_stats_accuracy | 0 | ||
| 181 | innodb_disable_sort_file_cache | Global | Boolean | OFF |
| 182 | innodb_doublewrite | ON | ||
| 183 | innodb_encrypt_log | OFF | ||
| 184 | innodb_encrypt_tables | OFF | ||
| 185 | innodb_encrypt_temporary_tables | OFF | ||
| 186 | innodb_encryption_rotate_key_age | 1 | ||
| 187 | innodb_encryption_rotation_iops | 100 | ||
| 188 | innodb_encryption_threads | 0 | ||
| 189 | innodb_fast_shutdown | Global | Integer | 1 |
| 190 | innodb_fatal_semaphore_wait_threshold | 600 | ||
| 191 | innodb_file_per_table | Global | Boolean | ON |
| 192 | innodb_fill_factor | Global | Integer | 100 |
| 193 | innodb_flush_log_at_timeout | Global | Integer | 1 |
| 194 | innodb_flush_log_at_trx_commit | Global | Enumeration | 1 |
| 195 | innodb_flush_method | fsync | ||
| 196 | innodb_flush_neighbors | Global | Enumeration | 1 |
| 197 | innodb_flush_sync | Global | Boolean | ON |
| 198 | innodb_flushing_avg_loops | Global | Integer | 30 |
| 199 | innodb_force_primary_key | OFF | ||
| 200 | innodb_force_recovery | 0 | ||
| 201 | innodb_ft_aux_table | Global | String | |
| 202 | innodb_ft_cache_size | 8000000 | ||
| 203 | innodb_ft_enable_diag_print | Global | Boolean | OFF |
| 204 | innodb_ft_enable_stopword | Both | Boolean | ON |
| 205 | innodb_ft_max_token_size | 84 | ||
| 206 | innodb_ft_min_token_size | 3 | ||
| 207 | innodb_ft_num_word_optimize | Global | Integer | 2000 |
| 208 | innodb_ft_result_cache_limit | Global | Integer | 2000000000 |
| 209 | innodb_ft_server_stopword_table | Global | String | |
| 210 | innodb_ft_sort_pll_degree | 2 | ||
| 211 | innodb_ft_total_cache_size | 640000000 | ||
| 212 | innodb_ft_user_stopword_table | Both | String | |
| 213 | innodb_immediate_scrub_data_uncompressed | OFF | ||
| 214 | innodb_instant_alter_column_allowed | add_drop_reorder | ||
| 215 | innodb_io_capacity | Global | Integer | 200 |
| 216 | innodb_io_capacity_max | Global | Integer | 2000 |
| 217 | innodb_lock_wait_timeout | Both | Integer | 50 |
| 218 | innodb_log_buffer_size | 16777216 | ||
| 219 | innodb_log_file_buffering | ON | ||
| 220 | innodb_log_file_mmap | OFF | ||
| 221 | innodb_log_file_size | 100663296 | ||
| 222 | innodb_log_group_home_dir | /var/packages/MariaDB10/target/mysql | ||
| 223 | innodb_log_spin_wait_delay | 0 | ||
| 224 | innodb_log_write_ahead_size | Global | Integer | 512 |
| 225 | innodb_lru_flush_size | 0 | ||
| 226 | innodb_lru_scan_depth | Global | Integer | 1536 |
| 227 | innodb_max_dirty_pages_pct | Global | Numeric | 90.000000 |
| 228 | innodb_max_dirty_pages_pct_lwm | Global | Numeric | 0.000000 |
| 229 | innodb_max_purge_lag | Global | Integer | 0 |
| 230 | innodb_max_purge_lag_delay | Global | Integer | 0 |
| 231 | innodb_max_purge_lag_wait | 4294967295 | ||
| 232 | innodb_max_undo_log_size | Global | Integer | 10485760 |
| 233 | innodb_monitor_disable | Global | String | |
| 234 | innodb_monitor_enable | Global | String | |
| 235 | innodb_monitor_reset | Global | Enumeration | |
| 236 | innodb_monitor_reset_all | Global | Enumeration | |
| 237 | innodb_old_blocks_pct | Global | Integer | 37 |
| 238 | innodb_old_blocks_time | Global | Integer | 1000 |
| 239 | innodb_online_alter_log_max_size | Global | Integer | 134217728 |
| 240 | innodb_open_files | 4000 | ||
| 241 | innodb_optimize_fulltext_only | Global | Boolean | OFF |
| 242 | innodb_page_size | 16384 | ||
| 243 | innodb_prefix_index_cluster_optimization | ON | ||
| 244 | innodb_print_all_deadlocks | Global | Boolean | OFF |
| 245 | innodb_purge_batch_size | Global | Integer | 127 |
| 246 | innodb_purge_rseg_truncate_frequency | Global | Integer | 128 |
| 247 | innodb_purge_threads | 4 | ||
| 248 | innodb_random_read_ahead | Global | Boolean | OFF |
| 249 | innodb_read_ahead_threshold | Global | Integer | 56 |
| 250 | innodb_read_io_threads | 4 | ||
| 251 | innodb_read_only | OFF | ||
| 252 | innodb_read_only_compressed | OFF | ||
| 253 | innodb_rollback_on_timeout | OFF | ||
| 254 | innodb_snapshot_isolation | OFF | ||
| 255 | innodb_sort_buffer_size | 1048576 | ||
| 256 | innodb_spin_wait_delay | Global | Integer | 4 |
| 257 | innodb_stats_auto_recalc | Global | Boolean | ON |
| 258 | innodb_stats_include_delete_marked | Global | Boolean | OFF |
| 259 | innodb_stats_method | Global | Enumeration | nulls_equal |
| 260 | innodb_stats_modified_counter | 0 | ||
| 261 | innodb_stats_on_metadata | Global | Boolean | OFF |
| 262 | innodb_stats_persistent | Global | Boolean | ON |
| 263 | innodb_stats_persistent_sample_pages | Global | Integer | 20 |
| 264 | innodb_stats_traditional | ON | ||
| 265 | innodb_stats_transient_sample_pages | Global | Integer | 8 |
| 266 | innodb_status_output | Global | Boolean | OFF |
| 267 | innodb_status_output_locks | Global | Boolean | OFF |
| 268 | innodb_strict_mode | Both | Boolean | ON |
| 269 | innodb_sync_spin_loops | Global | Integer | 30 |
| 270 | innodb_table_locks | Both | Boolean | ON |
| 271 | innodb_temp_data_file_path | ibtmp1:12M:autoextend | ||
| 272 | innodb_tmpdir | Both | Directoryname | |
| 273 | innodb_undo_directory | ./ | ||
| 274 | innodb_undo_log_truncate | Global | Boolean | OFF |
| 275 | innodb_undo_tablespaces | 0 | ||
| 276 | innodb_use_atomic_writes | ON | ||
| 277 | innodb_use_native_aio | ON | ||
| 278 | innodb_write_io_threads | 4 | ||
| 279 | interactive_timeout | Both | Integer | 28800 |
| 280 | join_buffer_size | Both | Integer | 262144 |
| 281 | join_buffer_space_limit | 2097152 | ||
| 282 | join_cache_level | 2 | ||
| 283 | keep_files_on_create | Both | Boolean | OFF |
| 284 | key_buffer_size | Global | Integer | 16384 |
| 285 | key_cache_age_threshold | Global | Integer | 300 |
| 286 | key_cache_block_size | Global | Integer | 1024 |
| 287 | key_cache_division_limit | Global | Integer | 100 |
| 288 | key_cache_file_hash_size | 512 | ||
| 289 | key_cache_segments | 0 | ||
| 290 | large_files_support | ON | ||
| 291 | large_page_size | 0 | ||
| 292 | large_pages | OFF | ||
| 293 | lc_messages | Both | String | en_US |
| 294 | lc_messages_dir | |||
| 295 | lc_time_names | Both | String | en_US |
| 296 | license | GPL | ||
| 297 | local_infile | Global | Boolean | ON |
| 298 | lock_wait_timeout | Both | Integer | 86400 |
| 299 | locked_in_memory | OFF | ||
| 300 | log_bin | OFF | ||
| 301 | log_bin_basename | |||
| 302 | log_bin_compress | OFF | ||
| 303 | log_bin_compress_min_len | 256 | ||
| 304 | log_bin_index | |||
| 305 | log_bin_trust_function_creators | Global | Boolean | OFF |
| 306 | log_disabled_statements | sp | ||
| 307 | log_error | /var/packages/MariaDB10/target/mysql/jendoNas2.err | ||
| 308 | log_output | Global | Set | FILE |
| 309 | log_queries_not_using_indexes | Global | Boolean | OFF |
| 310 | log_slave_updates | OFF | ||
| 311 | log_slow_admin_statements | Global | Boolean | ON |
| 312 | log_slow_disabled_statements | sp | ||
| 313 | log_slow_filter | admin filesort filesort_on_disk filesort_priority_queue full_join full_scan query_cache query_cache_miss tmp_table tmp_table_on_disk | ||
| 314 | log_slow_max_warnings | 10 | ||
| 315 | log_slow_min_examined_row_limit | 0 | ||
| 316 | log_slow_query | OFF | ||
| 317 | log_slow_query_file | jendoNas2-slow.log | ||
| 318 | log_slow_query_time | 10.000000 | ||
| 319 | log_slow_rate_limit | 1 | ||
| 320 | log_slow_slave_statements | Global | Boolean | ON |
| 321 | log_slow_verbosity | |||
| 322 | log_tc_size | 24576 | ||
| 323 | log_warnings | Global | Integer | 2 |
| 324 | long_query_time | Both | Numeric | 10.000000 |
| 325 | low_priority_updates | Both | Boolean | OFF |
| 326 | lower_case_file_system | OFF | ||
| 327 | lower_case_table_names | 0 | ||
| 328 | master_verify_checksum | Global | Boolean | OFF |
| 329 | max_allowed_packet | Both | Integer | 1048576 |
| 330 | max_binlog_cache_size | Global | Integer | 18446744073709547520 |
| 331 | max_binlog_size | Global | Integer | 1073741824 |
| 332 | max_binlog_stmt_cache_size | Global | Integer | 18446744073709547520 |
| 333 | max_connect_errors | Global | Integer | 100 |
| 334 | max_connections | Global | Integer | 151 |
| 335 | max_delayed_threads | Both | Integer | 20 |
| 336 | max_digest_length | 1024 | ||
| 337 | max_error_count | Both | Integer | 64 |
| 338 | max_heap_table_size | Both | Integer | 16777216 |
| 339 | max_insert_delayed_threads | Both | Integer | 20 |
| 340 | max_join_size | Both | Integer | 18446744073709551615 |
| 341 | max_length_for_sort_data | Both | Integer | 1024 |
| 342 | max_password_errors | 4294967295 | ||
| 343 | max_prepared_stmt_count | Global | Integer | 16382 |
| 344 | max_recursive_iterations | 1000 | ||
| 345 | max_relay_log_size | Global | Integer | 1073741824 |
| 346 | max_rowid_filter_size | 131072 | ||
| 347 | max_seeks_for_key | Both | Integer | 4294967295 |
| 348 | max_session_mem_used | 9223372036854775807 | ||
| 349 | max_sort_length | Both | Integer | 1024 |
| 350 | max_sp_recursion_depth | Both | Integer | 0 |
| 351 | max_statement_time | 0.000000 | ||
| 352 | max_tmp_tables | Both | Integer | 32 |
| 353 | max_user_connections | Both | Integer | 0 |
| 354 | max_write_lock_count | Global | Integer | 4294967295 |
| 355 | metadata_locks_cache_size | 1024 | ||
| 356 | metadata_locks_hash_instances | 8 | ||
| 357 | min_examined_row_limit | Both | Integer | 0 |
| 358 | mrr_buffer_size | 262144 | ||
| 359 | myisam_block_size | 1024 | ||
| 360 | myisam_data_pointer_size | Global | Integer | 6 |
| 361 | myisam_max_sort_file_size | Global | Integer | 9223372036853727232 |
| 362 | myisam_mmap_size | 18446744073709551615 | ||
| 363 | myisam_recover_options | BACKUP QUICK | ||
| 364 | myisam_repair_threads | Both | Integer | 1 |
| 365 | myisam_sort_buffer_size | Both | Integer | 134216704 |
| 366 | myisam_stats_method | Both | Enumeration | NULLS_UNEQUAL |
| 367 | myisam_use_mmap | Global | Boolean | OFF |
| 368 | mysql56_temporal_format | ON | ||
| 369 | net_buffer_length | Both | Integer | 2048 |
| 370 | net_read_timeout | Both | Integer | 30 |
| 371 | net_retry_count | Both | Integer | 10 |
| 372 | net_write_timeout | Both | Integer | 60 |
| 373 | note_verbosity | basic explain | ||
| 374 | old | OFF | ||
| 375 | old_alter_table | Both | Boolean | DEFAULT |
| 376 | old_mode | UTF8_IS_UTF8MB3 | ||
| 377 | old_passwords | Both | Enumeration | OFF |
| 378 | open_files_limit | 64186 | ||
| 379 | optimizer_adjust_secondary_key_costs | fix_reuse_range_for_ref fix_card_multiplier | ||
| 380 | optimizer_extra_pruning_depth | 8 | ||
| 381 | optimizer_join_limit_pref_ratio | 0 | ||
| 382 | optimizer_max_sel_arg_weight | 32000 | ||
| 383 | optimizer_max_sel_args | 16000 | ||
| 384 | optimizer_prune_level | Both | Integer | 2 |
| 385 | optimizer_search_depth | Both | Integer | 62 |
| 386 | optimizer_selectivity_sampling_limit | 100 | ||
| 387 | optimizer_switch | Both | Set | index_merge=on index_merge_union=on index_merge_sort_union=on index_merge_intersection=on index_merge_sort_intersection=off engine_condition_pushdown=off index_condition_pushdown=on derived_merge=on derived_with_keys=on firstmatch=on loosescan=on materialization=on in_to_exists=on semijoin=on partial_match_rowid_merge=on partial_match_table_scan=on subquery_cache=on mrr=off mrr_cost_based=off mrr_sort_keys=off outer_join_with_cache=on semijoin_with_cache=on join_cache_incremental=on join_cache_hashed=on join_cache_bka=on optimize_join_buffer_size=on table_elimination=on extended_keys=on exists_to_in=on orderby_uses_equalities=on condition_pushdown_for_derived=on split_materialized=on condition_pushdown_for_subquery=on rowid_filter=on condition_pushdown_from_having=on not_null_range_scan=off hash_join_cardinality=off cset_narrowing=off |
| 388 | optimizer_trace | Both | String | enabled=off |
| 389 | optimizer_trace_max_mem_size | Both | Integer | 1048576 |
| 390 | optimizer_use_condition_selectivity | 4 | ||
| 391 | performance_schema | OFF | ||
| 392 | performance_schema_accounts_size | -1 | ||
| 393 | performance_schema_digests_size | -1 | ||
| 394 | performance_schema_events_stages_history_long_size | -1 | ||
| 395 | performance_schema_events_stages_history_size | -1 | ||
| 396 | performance_schema_events_statements_history_long_size | -1 | ||
| 397 | performance_schema_events_statements_history_size | -1 | ||
| 398 | performance_schema_events_transactions_history_long_size | -1 | ||
| 399 | performance_schema_events_transactions_history_size | -1 | ||
| 400 | performance_schema_events_waits_history_long_size | -1 | ||
| 401 | performance_schema_events_waits_history_size | -1 | ||
| 402 | performance_schema_hosts_size | -1 | ||
| 403 | performance_schema_max_cond_classes | 90 | ||
| 404 | performance_schema_max_cond_instances | -1 | ||
| 405 | performance_schema_max_digest_length | 1024 | ||
| 406 | performance_schema_max_file_classes | 80 | ||
| 407 | performance_schema_max_file_handles | 32768 | ||
| 408 | performance_schema_max_file_instances | -1 | ||
| 409 | performance_schema_max_index_stat | -1 | ||
| 410 | performance_schema_max_memory_classes | 320 | ||
| 411 | performance_schema_max_metadata_locks | -1 | ||
| 412 | performance_schema_max_mutex_classes | 210 | ||
| 413 | performance_schema_max_mutex_instances | -1 | ||
| 414 | performance_schema_max_prepared_statements_instances | -1 | ||
| 415 | performance_schema_max_program_instances | -1 | ||
| 416 | performance_schema_max_rwlock_classes | 50 | ||
| 417 | performance_schema_max_rwlock_instances | -1 | ||
| 418 | performance_schema_max_socket_classes | 10 | ||
| 419 | performance_schema_max_socket_instances | -1 | ||
| 420 | performance_schema_max_sql_text_length | 1024 | ||
| 421 | performance_schema_max_stage_classes | 160 | ||
| 422 | performance_schema_max_statement_classes | 222 | ||
| 423 | performance_schema_max_statement_stack | 10 | ||
| 424 | performance_schema_max_table_handles | -1 | ||
| 425 | performance_schema_max_table_instances | -1 | ||
| 426 | performance_schema_max_table_lock_stat | -1 | ||
| 427 | performance_schema_max_thread_classes | 50 | ||
| 428 | performance_schema_max_thread_instances | -1 | ||
| 429 | performance_schema_session_connect_attrs_size | -1 | ||
| 430 | performance_schema_setup_actors_size | -1 | ||
| 431 | performance_schema_setup_objects_size | -1 | ||
| 432 | performance_schema_users_size | -1 | ||
| 433 | pid_file | /var/packages/MariaDB10/target/mysql/jendoNas2.pid | ||
| 434 | plugin_dir | /var/packages/MariaDB10/target/usr/local/mariadb10.11/lib/mysql/plugin/ | ||
| 435 | plugin_maturity | gamma | ||
| 436 | port | 3306 | ||
| 437 | preload_buffer_size | Both | Integer | 32768 |
| 438 | profiling | Both | Boolean | OFF |
| 439 | profiling_history_size | Both | Integer | 15 |
| 440 | progress_report_time | 5 | ||
| 441 | protocol_version | 10 | ||
| 442 | proxy_protocol_networks | |||
| 443 | query_alloc_block_size | Both | Integer | 32768 |
| 444 | query_cache_limit | Global | Integer | 1048576 |
| 445 | query_cache_min_res_unit | Global | Integer | 4096 |
| 446 | query_cache_size | Global | Integer | 1048576 |
| 447 | query_cache_strip_comments | OFF | ||
| 448 | query_cache_type | Both | Enumeration | OFF |
| 449 | query_cache_wlock_invalidate | Both | Boolean | OFF |
| 450 | query_prealloc_size | Both | Integer | 32768 |
| 451 | query_response_time_flush | OFF | ||
| 452 | query_response_time_range_base | 10 | ||
| 453 | query_response_time_stats | OFF | ||
| 454 | range_alloc_block_size | Both | Integer | 4096 |
| 455 | read_binlog_speed_limit | 0 | ||
| 456 | read_buffer_size | Both | Integer | 262144 |
| 457 | read_only | Global | Boolean | OFF |
| 458 | read_rnd_buffer_size | Both | Integer | 262144 |
| 459 | relay_log | |||
| 460 | relay_log_basename | |||
| 461 | relay_log_index | |||
| 462 | relay_log_info_file | relay-log.info | ||
| 463 | relay_log_purge | Global | Boolean | ON |
| 464 | relay_log_recovery | OFF | ||
| 465 | relay_log_space_limit | 0 | ||
| 466 | replicate_annotate_row_events | ON | ||
| 467 | replicate_do_db | |||
| 468 | replicate_do_table | |||
| 469 | replicate_events_marked_for_skip | REPLICATE | ||
| 470 | replicate_ignore_db | |||
| 471 | replicate_ignore_table | |||
| 472 | replicate_rewrite_db | |||
| 473 | replicate_wild_do_table | |||
| 474 | replicate_wild_ignore_table | |||
| 475 | report_host | |||
| 476 | report_password | |||
| 477 | report_port | 3306 | ||
| 478 | report_user | |||
| 479 | require_secure_transport | Global | Boolean | OFF |
| 480 | rowid_merge_buff_size | 8388608 | ||
| 481 | rpl_semi_sync_master_enabled | Global | Boolean | OFF |
| 482 | rpl_semi_sync_master_timeout | Global | Integer | 10000 |
| 483 | rpl_semi_sync_master_trace_level | Global | Integer | 32 |
| 484 | rpl_semi_sync_master_wait_no_slave | Global | Boolean | ON |
| 485 | rpl_semi_sync_master_wait_point | Global | Enumeration | AFTER_COMMIT |
| 486 | rpl_semi_sync_slave_delay_master | OFF | ||
| 487 | rpl_semi_sync_slave_enabled | Global | Boolean | OFF |
| 488 | rpl_semi_sync_slave_kill_conn_timeout | 5 | ||
| 489 | rpl_semi_sync_slave_trace_level | Global | Integer | 32 |
| 490 | s3_access_key | |||
| 491 | s3_block_size | 4194304 | ||
| 492 | s3_bucket | MariaDB | ||
| 493 | s3_debug | OFF | ||
| 494 | s3_host_name | s3.amazonaws.com | ||
| 495 | s3_no_content_type | OFF | ||
| 496 | s3_pagecache_age_threshold | 300 | ||
| 497 | s3_pagecache_buffer_size | 134217728 | ||
| 498 | s3_pagecache_division_limit | 100 | ||
| 499 | s3_pagecache_file_hash_size | 512 | ||
| 500 | s3_port | 0 | ||
| 501 | s3_protocol_version | Auto | ||
| 502 | s3_provider | Default | ||
| 503 | s3_region | |||
| 504 | s3_replicate_alter_as_create_select | ON | ||
| 505 | s3_secret_key | |||
| 506 | s3_slave_ignore_updates | OFF | ||
| 507 | s3_ssl_no_verify | OFF | ||
| 508 | s3_use_http | OFF | ||
| 509 | secure_auth | Global | Boolean | ON |
| 510 | secure_file_priv | |||
| 511 | secure_timestamp | NO | ||
| 512 | server_id | Global | Integer | 1 |
| 513 | server_uid | M4qs2VJIJ8RMDoSxRHwIKpUD2Dk= | ||
| 514 | session_track_schema | Both | Boolean | ON |
| 515 | session_track_state_change | Both | Boolean | OFF |
| 516 | session_track_system_variables | Both | String | autocommit character_set_client character_set_connection character_set_results time_zone |
| 517 | session_track_transaction_info | Both | Enumeration | OFF |
| 518 | skip_external_locking | ON | ||
| 519 | skip_grant_tables | OFF | ||
| 520 | skip_name_resolve | OFF | ||
| 521 | skip_networking | OFF | ||
| 522 | skip_show_database | OFF | ||
| 523 | slave_compressed_protocol | Global | Boolean | OFF |
| 524 | slave_ddl_exec_mode | IDEMPOTENT | ||
| 525 | slave_domain_parallel_threads | 0 | ||
| 526 | slave_exec_mode | Global | Enumeration | STRICT |
| 527 | slave_load_tmpdir | /var/packages/MariaDB10/tmp/tmpdir | ||
| 528 | slave_max_allowed_packet | Global | Integer | 1073741824 |
| 529 | slave_max_statement_time | 0.000000 | ||
| 530 | slave_net_timeout | Global | Integer | 60 |
| 531 | slave_parallel_max_queued | 131072 | ||
| 532 | slave_parallel_mode | optimistic | ||
| 533 | slave_parallel_threads | 0 | ||
| 534 | slave_parallel_workers | Global | Integer | 0 |
| 535 | slave_run_triggers_for_rbr | NO | ||
| 536 | slave_skip_errors | OFF | ||
| 537 | slave_sql_verify_checksum | Global | Boolean | ON |
| 538 | slave_transaction_retries | Global | Integer | 10 |
| 539 | slave_transaction_retry_errors | 1158 1159 1160 1161 1205 1213 1020 1429 2013 12701 | ||
| 540 | slave_transaction_retry_interval | 0 | ||
| 541 | slave_type_conversions | Global | Set | |
| 542 | slow_launch_time | Global | Integer | 2 |
| 543 | slow_query_log | Global | Boolean | OFF |
| 544 | slow_query_log_file | Global | Filename | jendoNas2-slow.log |
| 545 | socket | /run/mysqld/mysqld10.sock | ||
| 546 | sort_buffer_size | Both | Integer | 2097152 |
| 547 | sql_auto_is_null | Both | Boolean | OFF |
| 548 | sql_big_selects | Both | Boolean | ON |
| 549 | sql_buffer_result | Both | Boolean | OFF |
| 550 | sql_if_exists | OFF | ||
| 551 | sql_log_bin | Session | Boolean | ON |
| 552 | sql_log_off | Both | Boolean | OFF |
| 553 | sql_mode | Both | Set | STRICT_TRANS_TABLES ERROR_FOR_DIVISION_BY_ZERO NO_AUTO_CREATE_USER NO_ENGINE_SUBSTITUTION |
| 554 | sql_notes | Both | Boolean | ON |
| 555 | sql_quote_show_create | Both | Boolean | ON |
| 556 | sql_safe_updates | Both | Boolean | OFF |
| 557 | sql_select_limit | Both | Integer | 18446744073709551615 |
| 558 | sql_slave_skip_counter | Global | Integer | 0 |
| 559 | sql_warnings | Both | Boolean | OFF |
| 560 | ssl_ca | |||
| 561 | ssl_capath | |||
| 562 | ssl_cert | |||
| 563 | ssl_cipher | |||
| 564 | ssl_crl | |||
| 565 | ssl_crlpath | |||
| 566 | ssl_key | |||
| 567 | standard_compliant_cte | ON | ||
| 568 | storage_engine | InnoDB | ||
| 569 | stored_program_cache | Global | Integer | 256 |
| 570 | strict_password_validation | ON | ||
| 571 | sync_binlog | Global | Integer | 0 |
| 572 | sync_frm | Global | Boolean | ON |
| 573 | sync_master_info | Global | Integer | 10000 |
| 574 | sync_relay_log | Global | Integer | 10000 |
| 575 | sync_relay_log_info | Global | Integer | 10000 |
| 576 | system_time_zone | CST | ||
| 577 | system_versioning_alter_history | ERROR | ||
| 578 | system_versioning_asof | DEFAULT | ||
| 579 | system_versioning_insert_history | OFF | ||
| 580 | table_definition_cache | Global | Integer | 400 |
| 581 | table_open_cache | Global | Integer | 4000 |
| 582 | table_open_cache_instances | 8 | ||
| 583 | tcp_keepalive_interval | 0 | ||
| 584 | tcp_keepalive_probes | 0 | ||
| 585 | tcp_keepalive_time | 0 | ||
| 586 | tcp_nodelay | ON | ||
| 587 | test_sql_discovery_statement | |||
| 588 | test_sql_discovery_write_frm | ON | ||
| 589 | thread_cache_size | Global | Integer | 151 |
| 590 | thread_handling | one-thread-per-connection | ||
| 591 | thread_pool_dedicated_listener | OFF | ||
| 592 | thread_pool_exact_stats | OFF | ||
| 593 | thread_pool_idle_timeout | 60 | ||
| 594 | thread_pool_max_threads | 65536 | ||
| 595 | thread_pool_oversubscribe | 3 | ||
| 596 | thread_pool_prio_kickup_timer | Global | Integer | 1000 |
| 597 | thread_pool_priority | auto | ||
| 598 | thread_pool_size | 4 | ||
| 599 | thread_pool_stall_limit | Global | Integer | 500 |
| 600 | thread_stack | 245760 | ||
| 601 | time_format | %H:%i:%s | ||
| 602 | time_zone | Both | String | SYSTEM |
| 603 | tls_version | TLSv1.2 TLSv1.3 | ||
| 604 | tmp_disk_table_size | 18446744073709551615 | ||
| 605 | tmp_memory_table_size | 16777216 | ||
| 606 | tmp_table_size | Both | Integer | 16777216 |
| 607 | tmpdir | /var/packages/MariaDB10/tmp/tmpdir | ||
| 608 | transaction_alloc_block_size | Both | Integer | 8192 |
| 609 | transaction_prealloc_size | Both | Integer | 4096 |
| 610 | tx_isolation | Both | Enumeration | REPEATABLE-READ |
| 611 | tx_read_only | Both | Boolean | OFF |
| 612 | unique_checks | Both | Boolean | ON |
| 613 | updatable_views_with_limit | Both | Boolean | YES |
| 614 | use_stat_tables | PREFERABLY_FOR_QUERIES | ||
| 615 | userstat | OFF | ||
| 616 | version | 10.11.11-MariaDB | ||
| 617 | version_comment | Source distribution | ||
| 618 | version_compile_machine | x86_64 | ||
| 619 | version_compile_os | Linux | ||
| 620 | version_malloc_library | system | ||
| 621 | version_source_revision | 2c58ec661dab22aca499e98ddde521898c33fdb9 | ||
| 622 | version_ssl_library | OpenSSL 3.0.9 30 May 2023 | ||
| 623 | wait_timeout | Both | Integer | 28800 |
| 624 | wsrep_osu_method | TOI | ||
| 625 | wsrep_sr_store | table | ||
| 626 | wsrep_allowlist | |||
| 627 | wsrep_auto_increment_control | ON | ||
| 628 | wsrep_causal_reads | OFF | ||
| 629 | wsrep_certification_rules | strict | ||
| 630 | wsrep_certify_nonpk | ON | ||
| 631 | wsrep_cluster_address | |||
| 632 | wsrep_cluster_name | my_wsrep_cluster | ||
| 633 | wsrep_convert_lock_to_trx | OFF | ||
| 634 | wsrep_data_home_dir | /var/packages/MariaDB10/target/mysql/ | ||
| 635 | wsrep_dbug_option | |||
| 636 | wsrep_debug | NONE | ||
| 637 | wsrep_desync | OFF | ||
| 638 | wsrep_dirty_reads | OFF | ||
| 639 | wsrep_drupal_282555_workaround | OFF | ||
| 640 | wsrep_forced_binlog_format | NONE | ||
| 641 | wsrep_gtid_domain_id | 0 | ||
| 642 | wsrep_gtid_mode | OFF | ||
| 643 | wsrep_ignore_apply_errors | 7 | ||
| 644 | wsrep_load_data_splitting | OFF | ||
| 645 | wsrep_log_conflicts | OFF | ||
| 646 | wsrep_max_ws_rows | 0 | ||
| 647 | wsrep_max_ws_size | 2147483647 | ||
| 648 | wsrep_mode | |||
| 649 | wsrep_mysql_replication_bundle | 0 | ||
| 650 | wsrep_node_address | |||
| 651 | wsrep_node_incoming_address | AUTO | ||
| 652 | wsrep_node_name | jendoNas2 | ||
| 653 | wsrep_notify_cmd | |||
| 654 | wsrep_on | OFF | ||
| 655 | wsrep_patch_version | wsrep_26.22 | ||
| 656 | wsrep_provider | none | ||
| 657 | wsrep_provider_options | |||
| 658 | wsrep_recover | OFF | ||
| 659 | wsrep_reject_queries | NONE | ||
| 660 | wsrep_restart_slave | OFF | ||
| 661 | wsrep_retry_autocommit | 1 | ||
| 662 | wsrep_slave_fk_checks | ON | ||
| 663 | wsrep_slave_uk_checks | OFF | ||
| 664 | wsrep_slave_threads | 1 | ||
| 665 | wsrep_sst_auth | |||
| 666 | wsrep_sst_donor | |||
| 667 | wsrep_sst_donor_rejects_queries | OFF | ||
| 668 | wsrep_sst_method | rsync | ||
| 669 | wsrep_sst_receive_address | AUTO | ||
| 670 | wsrep_start_position | 00000000-0000-0000-0000-000000000000:-1 | ||
| 671 | wsrep_status_file | |||
| 672 | wsrep_sync_wait | 0 | ||
| 673 | wsrep_trx_fragment_size | 0 | ||
| 674 | wsrep_trx_fragment_unit | bytes | ||
| 675 | default_master_connection | |||
| 676 | error_count | 0 | ||
| 677 | external_user | |||
| 678 | gtid_seq_no | 0 | ||
| 679 | identity | Session | Integer | 0 |
| 680 | in_transaction | 0 | ||
| 681 | insert_id | Session | Integer | 0 |
| 682 | last_gtid | |||
| 683 | last_insert_id | Session | Integer | 0 |
| 684 | proxy_user | |||
| 685 | pseudo_slave_mode | Session | Boolean | OFF |
| 686 | pseudo_thread_id | Session | Integer | 16742030 |
| 687 | rand_seed1 | Session | Integer | 857146200 |
| 688 | rand_seed2 | Session | Integer | 1009667466 |
| 689 | skip_parallel_replication | OFF | ||
| 690 | skip_replication | OFF | ||
| 691 | timestamp | Session | Numeric | 1768499207.708110 |
| 692 | warning_count | 0 | ||
| 693 | wsrep_gtid_seq_no | 0 | ||