admin 管理员组

文章数量: 887021


2023年12月17日发(作者:网页制作试题及答案)

mysql> create database db1;Query OK, 1 row affected (0.06 sec)mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || db1 || mysql || performance_schema || test |+--------------------+5 rows in set (0.04 sec)创建表 use db1; create table t1(id int(4), name char(40));mysql> use db1;Database changedmysql> create table t1(id int(4), name char(40));Query OK, 0 rows affected (1.19 sec)mysql> show create table t1G*************************** 1. row

*************************** Table: t1Create Table: CREATE TABLE `t1` ( `id` int(4) DEFAULT NULL, `name` char(40) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=latin11 row in set (0.35 sec)查看当前数据库版本 select version();mysql> select version();+-----------+| version() |+-----------+| 5.6.35 |+-----------+1 row in set (0.04 sec)查看数据库状态 show status;mysql> show status;+-----------------------------------------------+-------------+| Variable_name

| Value

|+-----------------------------------------------+-------------+| Aborted_clients

| 0

|| Aborted_connects

| 1

|| Binlog_cache_disk_use

| 0

|| Binlog_cache_use

| 0

|| Binlog_stmt_cache_disk_use

| 0

|| Binlog_stmt_cache_use

| 0

|查看各参数 show variables; show variables like 'max_connect%'; //%是通配符


本文标签: 查看 数据库 试题 网页