Mysql,Oracle数据库连接数简析_MySQL
程序员文章站
2024-01-15 15:59:04
...
bitsCN.com
Mysql,Oracle数据库连接数简析 Mysql 01D:/Program Files/MySQL/MySQL Server 5.1/bin>mysql -u root -p02Enter password: ****03Welcome to the MySQL monitor. Commands end with ; or /g.04Your MySQL connection id is 183 05Server version: 5.1.58-community MySQL Community Server (GPL)06 07Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.08This software comes with ABSOLUTELY NO WARRANTY. This is free software,09and you are welcome to modify and redistribute it under the GPL v2 license10 11Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.12-- 使用xuexi数据库13mysql> use xuexi14Database changed15-- 查看字符集16mysql> SHOW VARIABLES LIKE 'character_set%';17-- 控制台汉字乱码,将编码改为gbk,控制台就可以显示中文了18mysql> set character_set_results='gbk';19-- 查看连接数 20mysql> SHOW PROCESSLIST;--100条21mysql> show full processlist;22-- 服务器的状态信息23mysql> show status; Oracle 01SQL> conn / as sysdba02Connected.03-- 连接数04SQL> select count(*) from v$session;05-- 并发连接数06SQL> Select count(*) from v$session where status='ACTIVE';07--最大连接08SQL> show parameter processes;09-- 修改processes和sessions值10SQL> alter system set processes=300 scope=spfile;11SQL> alter system set sessions=300 scope=spfile;
作者 车水码农 bitsCN.com
作者 车水码农 bitsCN.com
推荐阅读
-
Mysql,Oracle数据库连接数简析_MySQL
-
mysql数据库和php程序在同一台server,php连接数据库时候怎么写?
-
PHP长时间连接数据库造成mysql has gone away
-
不同数据库Oracle MySQL SQL Server DB2 infomix sybase分页查询语句
-
MySQL/Oracle数据库的基础(二)
-
MySQL中varchar最大长度简析_MySQL
-
Navicat premium连接数据库出现:2003 Can't connect to MySQL server on'localhost'(10061)
-
Linux操作系统下的Oracle数据库编程详解_MySQL
-
c#几种数据库的大数据批量插入(SqlServer、Oracle、SQLite和MySql)
-
PDO连接数据库从SQLITE改为MYSQL的有关问题