当前位置:首页 > 服务器系统 > Centos > 正文内容

centos_7 mariadb 的最大连接数max_connections修改

一二三5年前 (2020-12-05)Centos831
输入show variables like 'max_connections';

一、修改mariadb.service
vim /usr/lib/systemd/system/mariadb.service
在[Service]下面加入以下内容

LimitNOFILE=10000
LimitNPROC=10000

二、修改/etc/my.cnf
vim /etc/my.cnf
在[mysqld]下,加入以下内容

max_connections=4096

输入show variables like 'max_connections';

就看到改变了


扫描二维码至手机访问

扫描二维码推送至手机访问。

版权声明:本文由一二三博客发布,如需转载请注明出处。

分享给朋友:

相关文章

Centos 关闭selinux

Centos 关闭selinux:setenforce 0修改/etc/selinux/config,设置SELINUX=disabled,确保重启后也生效。...

CentOS7双网关双IP配置

CentOS7双网关双IP配置

eth0:10.88.1.22  gw :10.88.1.1    netmask:255.255.255.0eth1:10.77.1.22  gw :10.77.1.200&nb...

MYSQL 查看最大连接数和修改最大连接数

MySQL查看最大连接数和修改最大连接数1、查看最大连接数show variables like '%max_connections%';2、修改最大连接数set GLOBAL max...

CentOS查找文件内容命令

grep -rn "内容" /目录...

Centos7 mariadb 10.5集群式部署常见故障处理

Centos7 mariadb 10.5集群式部署常见故障处理

1、It may not be safe to bootstrap the cluster from this node. It was not the last one一、故障现象查看mysql错误...

Centos 扩展磁盘大小实战 Linux 磁盘分区扩容

yum install cloud-utils-growpart yum install xfsprogs LANG=en_US.UTF-8 growpa...