搜索结果
查询Tags标签: connections,共有 57条记录-
Druid源码阅读5-DruidDataSource的shrink过程
shrink方法是DestroyTask线程中回收连接的具体执行方法。 首先获得锁: try {lock.lockInterruptibly(); } catch (InterruptedException e) {return; }之后,要判断初始化状态是否完成,如果采用异步初始化,可能DestoryTask线程已经启动,但是连接池还没有初始化完成。 …
2021/11/14 1:10:43 人评论 次浏览 -
PostgreSQL数据库集簇初始化——initdb初始化数据库(测试平台相关配置设置)
static void test_config_settings(void) {/* This macro defines the minimum shared_buffers we want for a given max_connections value. The arrays show the settings to try. */ #define MIN_BUFS_FOR_CONNS(nconns) ((nconns) * 10)static const int trial_conns[…
2021/11/13 19:15:39 人评论 次浏览 -
PostgreSQL数据库集簇初始化——initdb初始化数据库(测试平台相关配置设置)
static void test_config_settings(void) {/* This macro defines the minimum shared_buffers we want for a given max_connections value. The arrays show the settings to try. */ #define MIN_BUFS_FOR_CONNS(nconns) ((nconns) * 10)static const int trial_conns[…
2021/11/13 19:15:39 人评论 次浏览 -
postgresql 忘记 postgres 密码
参考博文: 如何重置postgresql用户密码 解决方法:1、关闭数据库服务2、进入数据库的工作空间目录 (如果是建库是没有另外指定,应该就是postgresql安装目录下的 data 目录)3、编辑修改文件 pg_hba.conf, 把连接权限设置的 md5 加密方式 改成 trust以我的为例,原本设置…
2021/11/2 2:09:32 人评论 次浏览 -
postgresql 忘记 postgres 密码
参考博文: 如何重置postgresql用户密码 解决方法:1、关闭数据库服务2、进入数据库的工作空间目录 (如果是建库是没有另外指定,应该就是postgresql安装目录下的 data 目录)3、编辑修改文件 pg_hba.conf, 把连接权限设置的 md5 加密方式 改成 trust以我的为例,原本设置…
2021/11/2 2:09:32 人评论 次浏览 -
python 数据库连接池
DBUtilsclass PooledDedicatedDBConnection:"""Auxiliary proxy class for pooled dedicated connections."""def __init__(self, pool, con):"""Create a pooled dedicated connection.pool: the corresponding PooledDB i…
2021/10/7 2:10:58 人评论 次浏览 -
python 数据库连接池
DBUtilsclass PooledDedicatedDBConnection:"""Auxiliary proxy class for pooled dedicated connections."""def __init__(self, pool, con):"""Create a pooled dedicated connection.pool: the corresponding PooledDB i…
2021/10/7 2:10:58 人评论 次浏览 -
??【文末送书】MySQL 8 新特性:全局参数持久化!
前言 自从 2018 年发布第一版 MySQL 8.0.11 正式版至今,MySQL 版本已经更新迭代到 8.0.26,相对于稳定的 5.7 版本来说,8.0 在性能上的提升是毋庸置疑的! 随着越来越多的企业开始使用 MySQL 8.0 版本,对于 DBA 来说是一个挑战,也是一个机遇!
2021/9/26 2:10:55 人评论 次浏览 -
??【文末送书】MySQL 8 新特性:全局参数持久化!
前言 自从 2018 年发布第一版 MySQL 8.0.11 正式版至今,MySQL 版本已经更新迭代到 8.0.26,相对于稳定的 5.7 版本来说,8.0 在性能上的提升是毋庸置疑的! 随着越来越多的企业开始使用 MySQL 8.0 版本,对于 DBA 来说是一个挑战,也是一个机遇!
2021/9/26 2:10:55 人评论 次浏览 -
mysql(mariadb)
显示数据库连接:show full processlist 显示最大连接数:show variables like max_connections; 修改配置文件:/etc/my.cnf 修改最大连接数:[mysqld] 下面添加 max_connections=1024 查看状态 :service mysql status 重启:service mysql restart
2021/9/23 19:43:37 人评论 次浏览 -
mysql(mariadb)
显示数据库连接:show full processlist 显示最大连接数:show variables like max_connections; 修改配置文件:/etc/my.cnf 修改最大连接数:[mysqld] 下面添加 max_connections=1024 查看状态 :service mysql status 重启:service mysql restart
2021/9/23 19:43:37 人评论 次浏览 -
mysql设置最大连接数 max_connections
mysql 5.7版本的配置文件为:/etc/mysql/mysql.conf.d/mysqld.cnf 查看最大连接数:mysql> show variables like %connection%; +--------------------------+-----------------+ | Variable_name | Value | +--------------------------+-------…
2021/9/23 19:41:38 人评论 次浏览 -
mysql设置最大连接数 max_connections
mysql 5.7版本的配置文件为:/etc/mysql/mysql.conf.d/mysqld.cnf 查看最大连接数:mysql> show variables like %connection%; +--------------------------+-----------------+ | Variable_name | Value | +--------------------------+-------…
2021/9/23 19:41:38 人评论 次浏览 -
mysql修改最大连接数&wait_timeout时间
show processlist; 查看连接数,可以发现有很多连接处于sleep状态,这些其实是暂时没有用的,所以可以kill掉show variables like "max_connections"; 查看最大连接数,应该是与上面查询到的连接数相同,才会出现too many connections的情况set GLOBAL max_conn…
2021/9/16 2:05:38 人评论 次浏览 -
mysql修改最大连接数&wait_timeout时间
show processlist; 查看连接数,可以发现有很多连接处于sleep状态,这些其实是暂时没有用的,所以可以kill掉show variables like "max_connections"; 查看最大连接数,应该是与上面查询到的连接数相同,才会出现too many connections的情况set GLOBAL max_conn…
2021/9/16 2:05:38 人评论 次浏览