MariaDB10.6.4で設定されているパケットの最大値を確認する方法

環境
MariaDB 10.6.4
Windows 10 Home 64bit

構文
show variables like 'max_allowed_packet’
「max_allowed_packet」を使って、設定されているパケットの最大値を確認します。

使用例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
MariaDB [(none)]> show variables like 'max_allowed_packet';
+--------------------+----------+
| Variable_name | Value |
+--------------------+----------+
| max_allowed_packet | 16777216 |
+--------------------+----------+
1 row in set (1.500 sec)
MariaDB [(none)]> show variables like 'max_allowed_packet'; +--------------------+----------+ | Variable_name | Value | +--------------------+----------+ | max_allowed_packet | 16777216 | +--------------------+----------+ 1 row in set (1.500 sec)
MariaDB [(none)]> show variables like 'max_allowed_packet';
+--------------------+----------+
| Variable_name      | Value    |
+--------------------+----------+
| max_allowed_packet | 16777216 |
+--------------------+----------+
1 row in set (1.500 sec)

 

MariaDB

Posted by arkgame