为什么80%的码农都做不了架构师?>>>
Mysql
D:\Program Files\MySQL\MySQL Server 5.1\bin>mysql -u root -p
Enter password: ****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 183
Server version: 5.1.58-community MySQL Community Server (GPL)Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 licenseType 'help;' or '\h' for help. Type '\c' to clear the current input statement.
-- 使用xuexi数据库
mysql> use xuexi
Database changed
-- 查看字符集
mysql> SHOW VARIABLES LIKE 'character_set%';
-- 控制台汉字乱码,将编码改为gbk,控制台就可以显示中文了
mysql> set character_set_results='gbk';
-- 查看连接数
mysql> SHOW PROCESSLIST;--100条
mysql> show full processlist;
-- 服务器的状态信息
mysql> show status;
Oracle
SQL> conn / as sysdba
Connected.
-- 连接数
SQL> select count(*) from v$session;
-- 并发连接数
SQL> Select count(*) from v$session where status='ACTIVE';
--最大连接
SQL> show parameter processes;
-- 修改processes和sessions值
SQL> alter system set processes=300 scope=spfile;
SQL> alter system set sessions=300 scope=spfile;