Home  >  Article  >  Database  >  Mysql环境配置查询_MySQL

Mysql环境配置查询_MySQL

WBOY
WBOYOriginal
2016-06-01 12:59:341076browse

Mysql 环境查询

1, 查看所有的引擎

a) Show engines 或者是进入到information_schama里面去查看ENGINES表

2, 查看当前用户

a) Select user() 可以查看当前用

b) Show full processlist查看当前用的操作

3, 查看环境变量

a) Show variables 查看所有的环境变量

4, ignore用法

a) 当在执行命令中插入ignore的时候,当插入主键重复的时候也是不会报错的。

5, 获取帮助

a) Help 可以获取帮助

b) “Show databases \p;” 或者直接”\p”,参数\p打印出所执行的语句。PS(help中的参数格式都如同\p一样)

6, 显示数据库创建,或者表创建的语言

a) Show create 数据库/表

Statement:
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