MariaDB 数据库显示当前的连接配置

在登录数据库后,运行下面的 SQL

SHOW VARIABLES LIKE '%connect%';

SESSION_VARIABLES

Variable_name Value
character_set_connection utf8mb4
collation_connection utf8mb4_general_ci
connect_timeout 10
default_master_connection
disconnect_on_expired_password OFF
extra_max_connections 1
init_connect
max_connect_errors 100
max_connections 1200
max_user_connections 0
performance_schema_session_connect_attrs_size -1

上面的参数显示的是当前数据库可以接受的连接数量。

与我们修改的配置一致。