Home > Database > Mysql Tutorial > mysql数据库一些可能会用到的命令_MySQL

mysql数据库一些可能会用到的命令_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:28:42
Original
1147 people have browsed it

bitsCN.com

mysql数据库一些可能会用到的命令

 

SHOW STATUS LIKE &#39;Threads_connected&#39; /*当前链接数量*/SHOW STATUS LIKE &#39;Max_used_connections&#39; /*当前试用的最大连接数*//*修改mysql最大链接数*/SET GLOBAL max_connections=1000;/*当前修改立即生效*/ FLUSH PRIVILEGES ;show processlist ;/*  显示当前正在执行的mysql连接*/ mysqladmin -u<user> -p<pwd> -h<host> status /*显示mysql连接状态  在dos窗口*//*查询mysql表的所有字段类型*/SHOW COLUMNS FROM history;/**查询数据库的字段类型*/select  DATA_TYPE from information_schema.COLUMNS/*查询当前数据库支持的引擎*/SHOW ENGINES;/*查询当前数据库中所有表的引擎*/SHOW TABLE STATUS FROM database_name;/*修改表的引擎*/ALTER TABLE tableName ENGINE=MYISAM;/*查询当前数据的引擎*/SHOW VARIABLES LIKE &#39;%storage_engine%&#39;;
Copy after login

 


bitsCN.com
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template